Hi all-
Background: I have just started programming PHP and MySQL. I took a class at a community college which was a pretty good intro. To get additional exposure similar to what i might have to deal with doing PHP development professionally, i downloaded a project from [url]www.melonfire.com
Problem: When i click submit, i end up going to the error handler file. Looking at the code, i can’t see how this happens.
One thing i did to get this much working. The form submit buttons are all named submit. There is a variable called $submit that they produce. On the exercises that i have done, this interface between HTML and PHP has to be:
$submit = $_REQUEST[“submit”];
i was not aware that you could go straight from HTML to PHP by having a PHP variable named the same as an HTML submit button name. I added the above statement to various places in the project. Otherwise, when you clicked the submit button on the add document page, nothing happens at all except that the document refreshes, thus loosing all the entries. Maybe this is part of my problem.
Regards