View Full Version : Email form
Chris Carlson
04-14-2000, 01:40 PM
I would like to add a form on my web page where the viewer can send email to a selected person. Now I do not want them to be able to type in the email address to send to, but maybe a pulldown menu where they could select the person to send to. Anyone know how to do this? The mail form generator doesnt specify about creating a box to send to, of course it could be quite dangerous to have a mail form where anyone could send email to anyone, but I want to limit it to a selected staff members of my site. Any suggestions would be great
Thanks
------------------
Thanks,
Chris
Brian
04-14-2000, 02:16 PM
Here you go:
<!-- ONE STEP TO INSTALL DYNAMIC LINKS:
[nbsp][nbsp]1.[nbsp][nbsp]Copy the coding into the BODY of your HTML document[nbsp][nbsp]-->
<!-- STEP ONE: Paste this code into the BODY of your HTML document[nbsp][nbsp]-->
<center>
<form name="addresses">
do you want to ... <select name="list" onChange="update()">
<option value="mailto:admin@some-site.com">email admin@some-site.com
<option value="mailto:support@some-site.com">email support@some-site.com
<option value="http://www.netscape.com">go to www.netscape.com (http://www.netscape.com)
</select>
<a href="updatelink">do it!</a>
</form>
</center>
<script language="javascript">
<!-- this script and many more are available free online at -->
<!-- the javascript source!! http://javascript.internet.com -->
<!--[nbsp][nbsp]begin
pos = 9999;
for(num=0;num<document.links.length;num++) {
if (document.links[num].href.indexOf("updatelink") != -1) {
pos = num;
num = 5000;
[nbsp][nbsp] }
}
function update() {
if (pos!=9999) {
sel = document.addresses.list.selectedIndex;
document.links[pos].href = document.addresses.list[sel].value;
[nbsp][nbsp] }
}
update();
// end -->
</script>
<center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center>
<!-- Script Size:[nbsp][nbsp]1.08 KB[nbsp][nbsp]-->
Source: http://javascript.internet.com/navigation/dynamic-links.html
-Brian
[This message has been edited by Brian (edited 04-14-00@2:16 pm)]
Chris Carlson
04-14-2000, 04:44 PM
Thanks for that script but what I am looking for is one that will send an email directly from the web page like a form but without using the email software. One that the user can select the person they wish to email.
[nbsp]
Brian
04-14-2000, 05:01 PM
See Below
[This message has been edited by Brian (edited 04-14-00@5:11 pm)]
Brian
04-14-2000, 05:10 PM
You might try: http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Form_Processing/
-Brian
Mandi
04-14-2000, 07:12 PM
Do a search on these forums for cgiemail[nbsp][nbsp]. . . I think it'll fit the bill.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.