How do I use html or Fronntpage 2003 require a field in a form?
This is my issue . I am using forms to generate leads but I get a high volume of people how do not leave a phone #. My qustion is how do I use Html or Frontpage 2003 to require date to be placed in that field?
Public Comments
- go to help menu
- You're going to have to use a little bit of javascript to verify this. An example of this is below: <script language="javascript"> function validate(){ if (document.form1.phone.value.length <3) { alert("Please enter your phone number."); return false; } return true; } </script> --This is the javascript code--put it in the head of your document below is a sample form where u enter your phone number. If it has less than 3 characters, the above code initiates. <form name='form1' action="mailto:youremail"> <p><b>Phone: </b> <input type='text' size='15' name='phone'> </p> <p><input type="Submit"></p> -of course, change "youremail" to your email.
Powered by Yahoo! Answers