Re: php parses but no data inserted
| From: | John Nichel | Date: | Tue, 21 Sep 2004 13:47:59 +0000 |
| Subject: | Re: php parses but no data inserted | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197419@lists.php.net to get a copy of this message | ||
luke@lukem.co.uk wrote:
hi there, the following code runs but no message is displayed from the if then else statement at the end of the script. also, nothing is written to the database. i have checked the insert statement and the login credentials are correct.does anyone know what might be causing this? thanks, lukemack. <?php /* TITLE: Inmarsat Form handling script AUTHOR: Luke Mackenzie DATE: 18/09/04 */ error_reporting(E_ALL); // if the submit buttons has been pressed if (isset($_POST['submit'])){ <snip>Do you have a form element named 'submit' on the page that submits to this script? Right after the if statement you can echo something out just to see if it's working.... if (isset($_POST['submit'])){ echo ( "It worked" ); If you don't see the output, then your if statement is returning false. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com