I've got kind of a weird problem I can't figure out. I've got a form such as:
Filename=test.php
------------------------
session_start
print "<form action='test.php' method='POST'>";
print "<input type='text' name='foo' value='$foo'>";
print "<input type='submit' value='Go'>";
print "</form>";
-------------------------
This is very simplified, but the problem I'm having is that I can't seem to change the input value. Let's say I enter "abc", then I do a check for this value and determine it's wrong and send the user back to this page. "abc" is filled into the box. But if then type over "abc" and change it to say "def", the value does not change to "def". In fact I can NOT alter the initial value of "abc" no matter what I do. Does this make sense?
There must be something I'm doing wrong or have set wrong somewhere. Thanks, Sam
Filename=test.php
------------------------
session_start
print "<form action='test.php' method='POST'>";
print "<input type='text' name='foo' value='$foo'>";
print "<input type='submit' value='Go'>";
print "</form>";
-------------------------
This is very simplified, but the problem I'm having is that I can't seem to change the input value. Let's say I enter "abc", then I do a check for this value and determine it's wrong and send the user back to this page. "abc" is filled into the box. But if then type over "abc" and change it to say "def", the value does not change to "def". In fact I can NOT alter the initial value of "abc" no matter what I do. Does this make sense?
There must be something I'm doing wrong or have set wrong somewhere. Thanks, Sam