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
> $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
[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
3 matches
Mail list logo