Gazing into my crystal ball I observed "scpirin" <scpirin (AT) montage (DOT) com>
writing in news:bodv620275i (AT) enews1 (DOT) newsguy.com:
Quote:
How can I create a dropdown menu that offers different email addresses
and when submit is clicked, emails the form results to the specified
email address?
I am pretty sure HTML itself won't do it. Am willing to incorporate
ASP or PHP.
thanks,
scpirin |
ASP - Page 1
<form method="post" action="form2.asp">
<fieldset>
<label for="email">Email Address: </label>
<!-- If you are getting the email addresses from a database, open a
recordset here -->
<select name="email" id="email">
<!-- Begin looping through your recordset -->
<option value="">Select an Email Address</option>
<option value="you (AT) example (DOT) com">you (AT) example (DOT) com</option>
<option value="me (AT) example (DOT) com">me (AT) example (DOT) com</option>
<!-- end looping -->
</select>
<p style="text-align:center"><input type="submit" value="Submit" /></p>
</fieldset>
</form>
Page 2
<% dim email
email = request.form("email")
newmail.to = email
newmail.body = "Your message here"
newmail.send
%>
Adjust page 2 to whatever mailing system you are using, CDO, Aspmail, etc.
--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com