confirming e-mail address in forms

E

eberned

I have a form that people can subscribe to a mailing list. I have 3 text
boxes T1=name T2=e-mail address T3=confirm e-mail address. I want to make
sure that the T2 & T3 are both entered correctly and not allow the form to be
submitted until they are the same. I tried looking at validating the box and
tried must be equal to but do not know what string to writhe for value. IF
that is the way to go in the first place. Any help appreciated

www.blackcreekbaptistchruch.com

mike_e_ebermed
 
E

eberned

I went to the url and I copied and pasted the html and then did the same with
the java script. It came up with an error page which I am sure is beause I
made one. I will just come out and ask... How do I incorporate the js and
html code to make the form work? Can I add a text box to it for the persons
name? You have already been a lot of help. But I am not very good at
working behind the FP interface.

mike_e_ebermed
 
R

Ronx

What was the error?

If the error was a 404 error page, then the mistake was mine. I should
have explained that the forms action attribute was pointed to the same
page (email-check.htm) and the when submitted the page email-check.htm
would be loaded. Obviously in your site the page does not exist.

You can add as many more fields to the form as you wish.
To make the form work as a "real" form, right click anywhere in the form
and choose Form Properties. From here you can choose where the data is
to be stored or emailed, choose a confirmation page (or use the
FrontPage default), or if your server does not have FrontPage extensions
choose your own form handler to process the information.

Do not use the FrontPage validation feature - that will prevent the
email checking from functioning.

I have updated the script (to give a warning about invalid email format)
and added the above notes to the page at
http://www.rxs-enterprises.org/tests/email-check.htm
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
E

eberned

Thnaks my question is now where do I insert the Java Script into the HTMl in
the code view? before it? after it? or before or after the onchange command?
Do this makes sense?

Mike
 
R

Ronx

The JavaScript goes anywhere between the <head> and </head> tags.

Open my page in a browser, and view source. You can see the Javascript
in the <head> section, and the onchange and onsubmit events in the form
fields and for tag respectively.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top