Hi all,
I'm having a problem with self-processing forms (forms that have action=$PHP_SELF) losing their values. What i do is store the values of certain variables in hidden fields. I give the hidden fields the same name as the variables. But as soon as i submit the form, i check the source after the page has been rendered and i see that the values in the hidden fields have disappeared.
Eg.
Before submit
<form method="POST" action="/app_ed/frmUpdate.php">
<input type="hidden" name="strNewText" value=" This is a test message on the dev webserver ">
<input type="hidden" name="strOldText" value=" This is a test message ">
<input type="submit" name="btnUpdateSubmit" value="Submit" value='Yes/No' onclick='return confirm("Are you satisfied with the new message?");'>
</form>
After submit
<form method="POST" action="/app_ed/frmUpdate.php">
<input type="hidden" name="strNewText" value=" ">
<input type="hidden" name="strOldText" value=" ">
<input type="submit" name="btnUpdateSubmit" value="Submit" value='Yes/No' onclick='return confirm("Are you satisfied with the new message?");'>
</form>
What could've caused the values to disappear?