Help w/No Entry JS - only works on one browser...

wxdqz

New Member
Hi All

I'm hoping someone could help. I have created a basic form. (I am currently running the FormMail Script on this form).

One of the feedbacks I got was "It would be easier and save more time if I had gotten the form back w/ the information I had already input and let me make the corrections vs. having to input the entire form again."

I found the No Entry JS on <!-- m --><a class="postlink" href="http://javascript.internet.com/forms/no-entry.html">http://javascript.internet.com/forms/no-entry.html</a><!-- m -->. I followed the instructions and the script works well with IE 5 but does not work w/Netscape.

I have looked through the sights hoping to find one that works for both browsers and that dosen't conflict with FormMail but I haven't been able to find one.

Can anyone help?

Thanks

Below is the no-entry form script as found on javascript.internet.com:

<!-- THREE STEPS TO INSTALL NO ENTRY:

1. Paste the coding into the HEAD of your HTML document
2. Put the last code into the BODY of your HTML document
3. Change the form's ACTION to point to your Form Mail CGI-Script -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! <!-- m --><a class="postlink" href="http://javascript.internet.com">http://javascript.internet.com</a><!-- m --> -->

<!-- Begin
function noEntry() {
mt=document.form.entry.value;
if ((mt.length<1)||(mt.substring(0,6)=="******")) {
alert("I'm sorry. This entry must be "
+"completed before I can submit this form"
+" for processing.");
document.form.entry.value="******Please Complete This Entry";
document.form.entry.focus();
return false;
}
else { return true; }
}
// End -->
</SCRIPT>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<form name="form" action="/cgi-bin/your-form-processor.pl" onsubmit="return noEntry()">
<center>
<input type="text" name="entry" size=40><br>
<input type="submit" name="button" value=http://www.webdeveloper.com/forum/archive/index.php/"submit">
</center>
</form>

<!-- STEP THREE: Change the form's ACTION to point to your Form Mail CGI-Script -->

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href=http://www.webdeveloper.com/forum/archive/index.php/"http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.00 KB -->
 
Back
Top