lovesirius12
12-12-2005, 07:52 AM
here's the situation: in the first page, let's say registration page, i put fields for last name, first name and address. then when submitted, it goes to Checking page, it checks if the user had entered the required fields, and if a field was blank, it do this:
<script language="JavaScript">
window.history.back();
</script>
it goes back, alright but i cannot pass a value so i can tell the user which field he/she missed.
I've done redirecting before but all the text boxes were erased and its not nice. please help me.
i also tried putting a hidden input just before the code above, thus:
<input type="hidden" name="warn" value="lname">
<script language="JavaScript">
window.history.back();
</script>
it still doesnt work. please help. thanks.
<script language="JavaScript">
window.history.back();
</script>
it goes back, alright but i cannot pass a value so i can tell the user which field he/she missed.
I've done redirecting before but all the text boxes were erased and its not nice. please help me.
i also tried putting a hidden input just before the code above, thus:
<input type="hidden" name="warn" value="lname">
<script language="JavaScript">
window.history.back();
</script>
it still doesnt work. please help. thanks.