Hi Folks,
Here is a JS I got from this site. This scripts uses my default email program to send email. Instead of doing thisl, I would like to have it use my "cgi-sys/FormMail.cgi". I like the way this script makes the selection menu of the reciepatns but I do not like the warning message it gives when sending the email. So, I want to modify this scrip to elemiate the message it appears when I click submit and the way it is sent ..
Please modify it so I can post it into my site. Thanks
Here is the script:
***************************
<FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain"
onSubmit="(document.mailer.action += mailtoandsubject)">
<!-- Original: Jeff Kieke -->
<!-- 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 --> -->
<TABLE BORDER=0>
<TR VALIGN="top">
<TD>Recipient:</TD>
<TD><SELECT NAME="mailtoperson" onChange="msg(this.form)">
<OPTION VALUE=http://www.webdeveloper.com/forum/archive/index.php/"">-- Select --
<OPTION VALUE="[email protected]">[email protected]
<OPTION VALUE="[email protected]">[email protected]
<OPTION VALUE="[email protected]">[email protected]
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD>Your Name:</TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="name" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Your Email:</TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="email" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Priority:</TD>
<TD>
<SELECT NAME="priority" onChange="msg(this.form)">
<OPTION VALUE="Normal">Normal
<OPTION VALUE="Urgent">Urgent
<OPTION VALUE="No Reply Needed">No reply needed
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD>Subject:</TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="subject" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Message:</TD>
<TD><TEXTAREA NAME="message" COLS=45 ROWS=5 WRAP="virtual" OnChange="msg(this.form)"></TEXTAREA></TD>
</TR>
<TR>
<TD> </TD>
<TD><INPUT TYPE="submit" VALUE="Send Message">
<INPUT TYPE="reset" VALUE="Reset"></TD>
</TR>
</TABLE>
</FORM>
<SCRIPT LANGUAGE="JavaScript">
function msg() {
document.mailer.action = "mailto:"
mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) +'?subject=' + document.mailer.subject.value);
}
</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.78 KB -->
*********************************************
Here is a JS I got from this site. This scripts uses my default email program to send email. Instead of doing thisl, I would like to have it use my "cgi-sys/FormMail.cgi". I like the way this script makes the selection menu of the reciepatns but I do not like the warning message it gives when sending the email. So, I want to modify this scrip to elemiate the message it appears when I click submit and the way it is sent ..
Please modify it so I can post it into my site. Thanks
Here is the script:
***************************
<FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain"
onSubmit="(document.mailer.action += mailtoandsubject)">
<!-- Original: Jeff Kieke -->
<!-- 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 --> -->
<TABLE BORDER=0>
<TR VALIGN="top">
<TD>Recipient:</TD>
<TD><SELECT NAME="mailtoperson" onChange="msg(this.form)">
<OPTION VALUE=http://www.webdeveloper.com/forum/archive/index.php/"">-- Select --
<OPTION VALUE="[email protected]">[email protected]
<OPTION VALUE="[email protected]">[email protected]
<OPTION VALUE="[email protected]">[email protected]
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD>Your Name:</TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="name" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Your Email:</TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="email" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Priority:</TD>
<TD>
<SELECT NAME="priority" onChange="msg(this.form)">
<OPTION VALUE="Normal">Normal
<OPTION VALUE="Urgent">Urgent
<OPTION VALUE="No Reply Needed">No reply needed
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD>Subject:</TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="subject" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD>Message:</TD>
<TD><TEXTAREA NAME="message" COLS=45 ROWS=5 WRAP="virtual" OnChange="msg(this.form)"></TEXTAREA></TD>
</TR>
<TR>
<TD> </TD>
<TD><INPUT TYPE="submit" VALUE="Send Message">
<INPUT TYPE="reset" VALUE="Reset"></TD>
</TR>
</TABLE>
</FORM>
<SCRIPT LANGUAGE="JavaScript">
function msg() {
document.mailer.action = "mailto:"
mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) +'?subject=' + document.mailer.subject.value);
}
</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.78 KB -->
*********************************************