Question
How to retain form values
I have a form with checkboxes, radio buttons and an input for
email, <input type="text" name="myemail">.
When I submit the form, I use isValidate("email', form.myemail"> to validate the entered email.
If it is invalid, I use cflocation to go back to the form and display a javascript popup message :
<script language="javascript">
alert ("Please enter a valid email address for );
email_form.myemail.focus();
</script>
The problem I am having is that if the form is filled out and I submit, then come back to the form for the error message, the fields that were filled out are all cleared and I have to start all over.
Is there a way to retain the entries and still display the popup error message ?
When I submit the form, I use isValidate("email', form.myemail"> to validate the entered email.
If it is invalid, I use cflocation to go back to the form and display a javascript popup message :
<script language="javascript">
alert ("Please enter a valid email address for );
email_form.myemail.focus();
</script>
The problem I am having is that if the form is filled out and I submit, then come back to the form for the error message, the fields that were filled out are all cleared and I have to start all over.
Is there a way to retain the entries and still display the popup error message ?
