Hello;
I have a text box that should repopulate with whatever UName the user entered if the form they submit doesn't validate.
Here is how I repopulate the form after its submitted..
<input type=text name=UName value={$_POST['UName']}>
When the user clicks submit, if the form doesn't validate then the text fields are repopulated with whatever is in the POST array.
However white space is being ignored. If I enter Joe Smith then the text box only gets populated with Joe.
But If I just echo $_POST['Uname']; to the browser then it properly displays Joe Smith.
Is there a way to get the UName to properly display inside the text box when it is repopulated after a form submit?
thx..
-jk