PHP 4.0 Bug #10043 Updated: action handler not working

From: Date: Wed, 28 Mar 2001 22:31:00 +0000
Subject: PHP 4.0 Bug #10043 Updated: action handler not working
Groups: php.dev 
Request: Send a blank email to php-dev+get-50172@lists.php.net to get a copy of this message
ID: 10043 Updated by: torben Reported By: vlad@nikita.net Old-Status: Open Status: Feedback Bug Type: *Web Server problem Assigned To: Comments: What happens if you test $HTTP_POST_VARS['submit'] instead of just $submit? Sounds to me like you don't have register_globals turned on in php.ini. Can you check that (also, make sure your test isn't happening inside any function) and post your results back here? Thanks, Torben Previous Comments: --------------------------------------------------------------------------- [2001-03-28 17:11:26] vlad@nikita.net Seems as though the action handler doesn't work. PHP page is coded as its won form handler. Hitting "submit" simply reloads page with all the form variables not set. No errors either... I tried on Apache 1.3.x / IIS4.0 both CGI and ISAPI. <? if ($submit=='') { echo <<<EOT <html><head><link rel="stylesheet" type="text/css" href="cbox-exp.css"></head> <FORM method=post action=cutsheet.php> ...snip... <BUTTON type="submit" NAME="submit" value="submit">Submit</BUTTON></FORM> </body> </html> EOT; } else { #begin form handler... echo "Made it!"; } ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10043&edit=2

« previous php.dev (#50172) next »