freephoneid Posted September 19, 2008 Share Posted September 19, 2008 Hi, I'm getting weird result for below code & someone told me to post the question in Web server admini part... a.php ==== <form name="aa" method="post"> <input type="text" name="xx" value="77"> <input type="image" name="delete" value="Delete" src="images/1.gif" alt="Delete"> </form> <?php print_r($_POST); ?> When I clicked the delete button, this is what I get: Array ( [xx] => 77 [deleteasn_x] => 49 [deleteasn_y] => 10 ) instead of Array ( [xx] => 77 [delete_x] => [delete_y] => [delete] => Delete ) Version info on Windows XP: C:\>c:\php-5.2.3\php.exe -v PHP 5.2.3 (cli) (built: May 31 2007 09:37:22) Copyright © 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright © 1998-2007 Zend Technologies Apache Version: Apache2.2.4 Any idea, why delete is missing from POST? Thanks!!! Link to comment https://forums.phpfreaks.com/topic/124988-delete-missing-from-post-is-it-web-server-issue-or-php-bug/ Share on other sites More sharing options...
dzsoundnirvana Posted March 31, 2009 Share Posted March 31, 2009 Well i do not see any action="" in the <form> <form method="post" name="aa" action="<? echo $_SERVER['PHP_SELF']; ?>"> </form> The only value that should show up is $_POST['xx'] == "77" and $_POST['delete'] == "Delete" I do not see where you are getting any other results Link to comment https://forums.phpfreaks.com/topic/124988-delete-missing-from-post-is-it-web-server-issue-or-php-bug/#findComment-798087 Share on other sites More sharing options...
Maq Posted March 31, 2009 Share Posted March 31, 2009 Where is this form being processed? Like dzsoundnirvana said, you don't even have an action. Link to comment https://forums.phpfreaks.com/topic/124988-delete-missing-from-post-is-it-web-server-issue-or-php-bug/#findComment-798090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.