Retain Values in Filelds
Posted: Sun Jul 28, 2002 9:27 am
Hi !
When a field (say textbox, checkbox) is not satisfying a condition. I set the variable $msg with the error msg & redirect to the form page where the field(s) are. The error shows but then if there is something in the text, or checkbox, or option button, the person has to re-fill the form again. Is there a way dat i can retain the values stored in the textbox as well as show my error msgs too with header function or with some other function (if available) or some other way dat i can do it
thanx
Hoping 4 a postive response
Yusuf
When a field (say textbox, checkbox) is not satisfying a condition. I set the variable $msg with the error msg & redirect to the form page where the field(s) are. The error shows but then if there is something in the text, or checkbox, or option button, the person has to re-fill the form again. Is there a way dat i can retain the values stored in the textbox as well as show my error msgs too with header function or with some other function (if available) or some other way dat i can do it
Code: Select all
header("e;Location: register.php?error="e;.urlencode($msg));Hoping 4 a postive response
Yusuf