ASP Email Form

Hi,

I am writing a form to send email but I cannot add options (<select>) boxes.

<form method="POST" action="formconfirmation.asp">
From <input type="text" name="From"/> <br />
Option <select size="1" name="ABC">

            <option>A</option>
            <option>B</option>
            <option>C</option>
            

          </select><br />

Subject <input type="text" name="Subject"/> <br />
Body <textarea name="Body" rows="5" cols="20" wrap="physical" > 
</textarea>
<input type="submit" />
</form>

<%
'Sends an email
Dim mail
Set mail = Server.CreateObject("CDO.Message")
mail.To = "test@test.com"
mail.From = Request.Form("From")
mail.ABC = Request.Form("ABC")
mail.Subject = Request.Form("Subject")
mail.TextBody = Request.Form("Body")
mail.Send()
Response.Write("Mail Sent!")
'Destroy the mail object!
Set mail = nothing
%>

What am I doing wrong?

Thanks,

Matt.

What do you mean by not able to add options?

If you follow the right html syntax as below, it shall work.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.