chaddu1256
IS-IT--Management
I wrote a script that we use to email a form off. The code is as follows.
<%
Set Mail = Server.CreateObject("Persits.MailSender"
Mail.Host = "10.1.25.10"
Mail.From = Request.Form("email"
Mail.FromName = Request.Form("name"
& Request.Form("lastname"
Mail.AddAddress "cduhon@wd-net.com", "Chad Duhon"
Mail.Subject = "BillerAdvantage Partnership Request"
Mail.Body = "BillerAdvantage Partnership Request Form:" & chr(13) & chr(10) & _
"First Name:" & Request.Form("name"
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "An error occurred: " & Err.Description
End If
%>
Now my problem is, in the section that says "First Name:" & Request.Form("name"
how do I make the script grab more that one field from the form. There are multiple fields that I need to use Request.Form on. I tried placing an & just after the ("name"
and start the next line with a Request.Form but the script fails every time I try to run it. Any info would be great.
<%
Set Mail = Server.CreateObject("Persits.MailSender"
Mail.Host = "10.1.25.10"
Mail.From = Request.Form("email"
Mail.FromName = Request.Form("name"
Mail.AddAddress "cduhon@wd-net.com", "Chad Duhon"
Mail.Subject = "BillerAdvantage Partnership Request"
Mail.Body = "BillerAdvantage Partnership Request Form:" & chr(13) & chr(10) & _
"First Name:" & Request.Form("name"
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "An error occurred: " & Err.Description
End If
%>
Now my problem is, in the section that says "First Name:" & Request.Form("name"