E-Mail validation (forms) in FrontPage98-How?

How do I validate the e-mail field using FrontPage 98 in a form containing other fields. I have tried the Validate feature but can only get it to validate other fields such as name or address, for length of input or for type of input (text, digits whitespace etc.)but cannot get it to make sure there is an @ or a .com,.net etc...the usual format for e-mail addresses. Have tried on my own before coming here but with no luck.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

freespirit020199Author Commented:
Edited text of question.
It's not possible in Frontpage.  You can solve the problem with javascript.  

I will give you a script but not for 50 points.  Put your page online and I will add the script.

freespirit020199Author Commented:
LOL,...I detect the makings of a deal! Okay sir...will post the code in a jiffy..I think its worth more than 50 for sure if it works!
Be back in a wink.
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

freespirit020199Author Commented:
Note however, that the problem I'm having is not so much in getting an e-mail script really. I have tried using one and it works, it validates the e-mail address. Problem is, it does just that ONLY...validate e-mail only. The other FrontPage form handler features which I need to use (such as submit the results to a file, e-mail results & send results to an HTML document) seem to nullify the e-mail script if I use them. I would then need to find another script to do the other procedures. Because I am just a beginner I did not even consider going this route. Also my server does not support CGI scripts in the usual Perl etc. It supports only ASP and any .exe scripts written in certain languages. SO...what now? Anyway I posted the code below in hopes that you still could help. I hope the points are okay now...I do not have a clue what is worth what here.:


<title>Contact Us&nbsp; - Questions, Comments etc. - New World Realtors, Jamaica</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">

style="font-family: Arial, Verdana; font-size: 10pt">
<div align="center">

<form method="POST" onsubmit="return FrontPage_Form1_Validator(this)"
name="FrontPage_Form1" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" startspan U-File="../_private/form_results.txt"
  S-Format="HTML/BR" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
  U-File="contactinfo.htm" S-Format="HTML/BR" S-Label-Fields="TRUE"
  U-Validation-Error-Url="http://Ocean/newworld/contactus/contactfail.htm" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
  bot="SaveResults" endspan --><table border="0" width="300">
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>First Name * :</b></font></td>
      <td width="338"><!--webbot bot="Validation" startspan S-Display-Name="firstname"
      S-Data-Type="String" B-Allow-Letters="TRUE" S-Allow-Other-Chars="."
      B-Value-Required="TRUE" I-Minimum-Length="1" --><!--webbot bot="Validation" endspan --><input
      type="text" name="FIRSTNAME" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Last Name * :</b></font></td>
      <td width="338"><!--webbot bot="Validation" startspan S-Data-Type="String"
      B-Allow-Letters="TRUE" B-Allow-WhiteSpace="TRUE" S-Allow-Other-Chars="." --><!--webbot
      bot="Validation" endspan --><input type="text" name="LASTNAME" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Email * :</b></font></td>
      <td width="338"><input type="text" name="email" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Street - Line 1:</b></font></td>
      <td width="338"><input type="text" name="STREET" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Street - Line 2:</b></font></td>
      <td width="338"><input type="text" name="STREET2" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>City:</b></font></td>
      <td width="338"><input type="text" name="CITY" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>ZIP (type &quot;none&quot; if
      not applicable):</b></font></td>
      <td width="338"><input type="text" name="ZIP" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>State/Parish/District/Province:</b></font></td>
      <td width="338"><input type="text" name="STATE" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Country :</b></font></td>
      <td width="338"><select name="COUNTRY" size="1">
        <option selected>-- Select your country -- </option>
        <option>Afghanistan </option>
        <option>Albania </option>
        <option>Algeria </option>
        <option>American Samoa </option>
        <option>Andorra </option>
        <option>Angola </option>
        <option>...etc.... </option>
        <option>Vietnam </option>
        <option>Virgin Islands (Br.) </option>
        <option>Wallis &amp; Fortuna Is. </option>
        <option>Yemen, Peop. Rep. of </option>
        <option>Zaire </option>
        <option>Zambia </option>
        <option>Zimbabwe </option>
      </select> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Telephone #:</b></font></td>
      <td width="338"><input type="text" name="TEL" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Fax #:</b></font></td>
      <td width="338"><input type="text" name="FAX" size="36"> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Questions/Comments:</b></font></td>
      <td width="338"><textarea name="COMMENTS" cols="36" rows="5"></textarea> </td>
      <td width="146" bgcolor="#008B00"><font color="#FFFFFF"><b>Comments or suggestions that
      may help us improve our Web site?</b></font></td>
      <td width="338"><textarea name="SUGGESTIONS" cols="36" rows="5"></textarea> </td>
  <p><input type="RESET" value="Clear form" name="RESET"> <input type="submit" name="email1"
  value="Submit"> </p>
that's all I needed.

Sorry, but I stop working for today.  Tomorrow you'll have the script

I couldn't upload the script here.  Please check http://www.cvohz.yucom.be/experts_af.htm

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
freespirit020199Author Commented:
what does this line do exactly:

action="_vti_bin/shtml.exe/experts_af.htm" ) webbot-action="--WEBBOT-SELF--">

I don't know.  Frontpage added it and I don't like it.  So there is a corrected version of the file.  Hope that it's working all right.
I don't know about you, but when I used to use FP's form validation, and I then wanted to add my own, I found it a right pain.

The way *I* got around it, so that I could utilise both FP's form validation in addition to my custom form validation was to replace the "Submit" button with a scripted regular button.

<INPUT type="button" value="Submit" onclick="myformvalidator(this.form)">

where myformvalidator() is something like :

function myformvalidator(f) {
 var formOK;
 if( FrontPage_Form1_Validator(f) ) {
  // my custom validation
  // goes here.  eg.
  formOK = checkEmail(f.email.value);
  // At the end of the custom validation,
  // submit the form if it's good.
  if(formOK) {

as it happens, I have just written a handy little checkEmail function too ;)

function checkEmail(e){
 // support functions for checkEmail
 function _ce1(i,sc) {
  var sp=i.indexOf(sc);
   sp=new Array(i.substring(0,sp),i.substring(sp+1,i.length));
  return sp;
 function _ce2(s) {
  var x=_ce1(s,"."),l,r;
   return true;
  if(l=='' || r=='' || !_ce3(l) )
   return false;
  return _ce2(r);
 function _ce3(stin) {
  var vc="abcdefghijklmnopqrstuvwxyz1234567890-_",st=stin.toLowerCase();
  for(var i=0;i<st.length;i++)
    return false;
  return true;
 var t=e.length-e.lastIndexOf("."),l,d,

  return true;
 if(a==-1 || t<3 || t>4 )
  return false;
 if(l=='' || d=='')
  return false;
 return vd && vl;

...food for thought..

Do you like my solution or not?

Two weeks to validate the question?

freespirit020199Author Commented:
Yes unfortunately & sometimes even more weeks when you own 2 businesses in a 3rd world counytry. I do however apppreciate greatly your assistance. I finally got a chance to try the code. I keep getting this message when I test it though, without the results being posted. It does however correct the e-mail if it is input incorrectly such as leaving out the @:

"FrontPage Error.

User: please report details to this site's webmaster.

Webmaster: please see the server's C:\FRONTPG.LOG for more details. "

I cannot get the form to work after trying numerous angles. Am I doomed to the newbie-quagmire?
freespirit020199Author Commented:
brigmar will try yours out and let you know if it works
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed.  Also a question is posted there specific to these changes that apply to the experts here.  Also, I am including the link to our All Topics, since many new ones have recently been added.

Thank you,
Moderator @ Experts Exchange
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.