Re: [PHP] [noob] can't submit simple form, need help

2005-03-03 Thread Jochem Maas
p80 wrote: any idea why this simple peace of code is not working? now lets see: 1. $submit_post will never equal 'yes' because your submit buttons value is 'submit' and its name is also 'submit', the POST value is are overwriting the GET value (thats default order for php anyway) removing the

RE: [PHP] [noob] can't submit simple form, need help

2005-03-03 Thread Warren Vail
> $submit_post=$_REQUEST['submit']; > > if ($submit_post=='yes') { looks like the value in your form is not 'yes' but 'submit' > > > if this is not it, perhaps we should see more. Warren Vail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] [noob] can't submit simple form, need help

2005-03-03 Thread Jay Blanchard
[snip] any idea why this simple peace of code is not working? // code that will be executed if the form has been submitted: $submit_post=$_REQUEST['submit']; if ($submit_post=='yes') [/snip] Probably because $_REQUEST['submit'] !== 'yes' print_r($_REQUEST); to see the array -- PHP General