Front Page Froam Validation

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

Hi everyone

I am using a standard FP form and wonder how to make a second one line text
box validated such that the input must be the same as the preceding one. For
example, enter email address, then verify it in the next box. If it isn't
the same, then an Alert pops up like the one you get when requiring data in
a box but someone dosn't enter it. Make sense?
Also, is it possible to request, using the FP form component, that someone
enters a date in DD/MM/YY (UK) format?
I imagine I will get directed to some javascript. Is is possible at all?
Many thanks in advance.
Rob

--
Rob Farris

FarrisWebs Web Design, Hosting
& Internet Promotion Services
26 Spinners Close
Biddenden
Ashford
Kent
TN27 8AZ
United Kingdom
Internet: www.farriswebs.co.uk <http://www.farriswebs.co.uk>
email: (e-mail address removed) <mailto:[email protected]>
Tel: 01580 291754
 
-----Original Message-----
Hi everyone
Howdy.

I am using a standard FP form and wonder how to make a
second one line text box validated such that the input
must be the same as the preceding one. For example, enter
email address, then verify it in the next box. If it
isn't the same, then an Alert pops up like the one you
get when requiring data in a box but someone dosn't enter
it. Make sense?

Try this:

<form method="POST" >
<script>
function chkInput(){
if (document.forms[0].T1.value ==
document.forms[0].T2.value){
document.forms[0].submit();<p><input type="button"
value="Button" name="B1"
onclick="chkInput();"></p>
</form>
}else{
alert("Text boxes not equal!");
}
}
</script>
<p><input type="text" name="T1" size="20"></p>
<p><input type="text" name="T2" size="20"></p>


Note that the button has a type of "button" and an
onclick= attribute. A normal "submit" button won't work.
Also, is it possible to request, using the FP form
component, that someone enters a date in DD/MM/YY (UK)
format? I imagine I will get directed to some javascript.
Is is possible at all? Many thanks in advance.
Rob

No. And even if there were, there's no way of telling
whether 01/02/03 is a US date or a UK date. That's why a
lot of sites use three separate text boxes.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Hi Mike

I have your J-Bots 2002? installed. Now why didn't I think of that? I have
to say, I use it primarily for the ease of use for mouseover images and the
image preloader and hardly look at the other functions. I will from now on!
Thanks for the pointer.
Rob
 
Howdy Jim

Thank you for your response. I will use Mike of Websunlimited's validator
and thank you for your input regarding date format.

Rob

Jim Buyens said:
-----Original Message-----
Hi everyone
Howdy.

I am using a standard FP form and wonder how to make a
second one line text box validated such that the input
must be the same as the preceding one. For example, enter
email address, then verify it in the next box. If it
isn't the same, then an Alert pops up like the one you
get when requiring data in a box but someone dosn't enter
it. Make sense?

Try this:

<form method="POST" >
<script>
function chkInput(){
if (document.forms[0].T1.value ==
document.forms[0].T2.value){
document.forms[0].submit();<p><input type="button"
value="Button" name="B1"
onclick="chkInput();"></p>
</form>
}else{
alert("Text boxes not equal!");
}
}
</script>
<p><input type="text" name="T1" size="20"></p>
<p><input type="text" name="T2" size="20"></p>


Note that the button has a type of "button" and an
onclick= attribute. A normal "submit" button won't work.
Also, is it possible to request, using the FP form
component, that someone enters a date in DD/MM/YY (UK)
format? I imagine I will get directed to some javascript.
Is is possible at all? Many thanks in advance.
Rob

No. And even if there were, there's no way of telling
whether 01/02/03 is a US date or a UK date. That's why a
lot of sites use three separate text boxes.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Mike

I know, I am lazy. I will certainly dive in and look around and get my
money's worth. I have actually done that times over with the ease of the
mouseover as mentioned previously. Anyway, enough advertising for you. One
thing, I can not for love nor money get to grips with menu weaver. That is
off topic. Sorry guys.
Good night from the UK.
Rob
 
Back
Top