[PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
Hi Shaun, Your expression is evaluating, if you like does the $_POST superglobal exist and it does but might be empty, this would be the same for $_GET and other superglobals. If you did the following: if (isset($_POST) !empty($_POST)) { echo '(isset($_POST))'; } This would only appear if

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 17:34, Craig Donnelly wrote: If you want to test to see if a form has been submitted, I would suggest that you use the name from the submit button. e.g - input type=submit value=Send Form Data name=sendform if(isset($_POST['sendform'])){ echo Form has been

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
Ok, in simple form - If the submit button was clicked, If some one hits enter this would be a problem, easy way to resolve this would be to have a hidden form element flagged and to terst for that instead of the submit button, wouldnt you agree Jason? Craig Jason Wong [EMAIL PROTECTED] wrote in

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 18:21, Craig Donnelly wrote: Ok, in simple form - If the submit button was clicked, If some one hits enter this would be a problem, easy way to resolve this would be to have a hidden form element flagged and to terst for that instead of the submit button, wouldnt