Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Equal to 1

Status
Not open for further replies.

ABJ

Technical User
Aug 29, 2000
16
AU
Hey Guys i have built a form in Front page and some times the people filling out the form are not putting corect e-mail addresses in. I would like them to re-enter there e-mail address twice so that it will be correct but i can't get it to equal to the other one if it is incorrect.

Here is the page

Any help would be greatly appreciated.
Thanks Al
 
i do not know how this can be done in front page, but i am providing a simple script which you can add to your pages to do this for you.

enter the following script onto the results page the page that comes after the form

********************************
<%
Dim mail1, mail2, mail3
mail1=request.form(&quot;first email field name&quot;)
mail2=request.form(&quot;second email field name&quot;)
if mail1=mail2 then
%>

(place here the full page, that displays the results.. ie all your current script)

<% else
response.redirect(&quot;address of the form page?mail3=error&quot;)
end if %>

*********************************************

place the following code, at the top of the form page

****************************************

<%
dim mail3
mail3=request.form(&quot;mail3&quot;)
if mail3=&quot;error&quot; then
Response.write (&quot;you have not put the same email address in both forms&quot;)
end if %>

**********************************************

that should solve the problem,

hope it helps

thjanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top