Guys:
I’ve just wasted over an hour trying to solve a mystery of why in one of my forms when user hits Submit button the name of that button does not get sent with the rest of the form……… I’m still stumped over it.
Here’s the simplest HTML + PHP combo that is still not working:
[code=html]<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>New Page 1</title>
</head>
<body>
<form method=”POST” action=”test.php”>
<p><input type=”text” name=”T1″ size=”20″><input type=”submit” value=”Add New User” name=”naubadd” title=”Click here to add new user”></p>
</form>
</body>
</html>
And test.php
[code=php]<?php
print_r($_POST);
print “<br>BUtton name value = “.$_POST[‘naubadd’];
?>
If you go to the link above and click “Add New User” button PHP script will show that naubadd => Add New User, now how the hell when someone hits Enter instead of clicking button the naubadd is GONE????????????????????????????? AM I TOTALLY LOSING IT OR THE SERVER IS SCREWED UP???? I’m sorry for my language, I’m just not used to wasting so much time over such idiosy.
PS. I’m using IE 6 that comes with XP Pro