How retain field entry when utilizing validation?

I have set a couple field on a form for validation.  If the user doesn't fill the fields in they get a validation error page and then can click a lick to go back to the form.  But all of the field entries they made the first time are gone.  How can I retain them?

--Steve
SteveL13Asked:
Who is Participating?
 
rcmbCommented:
Cut and paste the following into two files and save them with the names provided.

File 1 -- named submission_form.htm --

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>This is a form that will submit</title>
</head>

<body>

<p>This is a form that will submit to a confirmation page.</p>
<p>&nbsp;</p>
<form method="POST" action="--WEBBOT-SELF--">
      <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Builtin-Fields U-Confirmation-Url="confirmation.htm" -->
      <p>Last Name: <input type="text" name="LastName" size="20"></p>
      <p>First Name: <input type="text" name="FirstName" size="20"></p>
      <p>City: <input type="text" name="City" size="20"></p>
      <p>State: <input type="text" name="State" size="20"></p>
      <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
<p>&nbsp;</p>

</body>

</html>

File 2 -- named confirmation.htm --

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>This is a confirmation page that</title>
</head>

<body>

<p>This is a confirmation page that displays the results of the submitted form</p>
<p>Last Name: <!--webbot bot="ConfirmationField" S-Field="LastName" --></p>
<p>First Name: <!--webbot bot="ConfirmationField" S-Field="FirstName" --></p>
<p>City: <!--webbot bot="ConfirmationField" S-Field="City" --></p>
<p>State: <!--webbot bot="ConfirmationField" S-Field="State" --></p>
<p>If this information is incorrect please click
<a href="javascript:history.go(-1)">here</a> to correct.</p>

</body>

</html>
0
 
rcmbCommented:
If the link you are using redirects to the page then you will reload the page and lose all of your data.

Instead change your link to read:

javascript:history.go(-1)

this is the same as using the back button.
0
 
SteveL13Author Commented:
To rcmb:

I would do this if I could find the page the link is on.  I guess its a default htm page but I can't locate it.  The address reads:

http://www.mydomain/folder/_vti_bin/shtml.dll/Default.htm

I can't find this.  Do you know where it "lives"?
0
 
rcmbCommented:
Oh, so you are using the default frontpage validation page. You should create your own confirmation page and have all the fields displayed on the confirmation page and then insert your link to go back if there are problems.

I can send you an example if you desire.

RCMB
0
 
SteveL13Author Commented:
Yes, please do.  I'd appreciate it.

--Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.