|
Email registry |
Post Reply |
Author | |
Andy Holmes
Newbie Joined: April/06/04 Location: United Kingdom Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: April/06/04 at 5:07am |
Anyone worked out how to add additional inputs for the email registry page?
I want to use this as a non payment way of getting user details sent to me. I want to add two extra inputs- "name" and "contact telephone" that will do. I can modify the page to send to an email address of my choice. I have been fiddling around with the code- can anyone give me a pointer on how to add these two text entry boxes? |
|
GreatWeb1
Newbie Joined: March/31/04 Location: United States Status: Offline Points: 26 |
Post Options
Thanks(0)
|
What type of Web tool are you using? Frontpage or DreamWeaver?
Are you asking help on just adding two fields or a way to send out a secondary email with the information people are emailing? |
|
Andy Holmes
Newbie Joined: April/06/04 Location: United Kingdom Status: Offline Points: 19 |
Post Options
Thanks(0)
|
I am using frontpage 2000.
What I am really after is an alternative to credit card payments. I thought I could use the registry page so that users can send me the cart contents in an email- I would like to add a name and contact number so I can tie in the order with a user. Do you think this is possible GreatWeb1? I am a bit stumped so any tips would be welcome :-) Thanks in Advance Andy |
|
GreatWeb1
Newbie Joined: March/31/04 Location: United States Status: Offline Points: 26 |
Post Options
Thanks(0)
|
In your EmailRegistry.asp page.
First you will add these two text box: <input type="text" name="name" size="20" value=""> <input type="text" name="phone" size="20" value=""> Then replace this code: objMail.SetBody=NewMessage With this: objMail.SetBody="Name: " & Request.Form("name") & chr(13) & "Phone: " & Request.Form("phone") & chr(13) & NewMessage |
|
GreatWeb1
Newbie Joined: March/31/04 Location: United States Status: Offline Points: 26 |
Post Options
Thanks(0)
|
If you want the form to retain the Name and Phone submitted then use these text box instead.
<input type="text" name="name" size="20" value="<%=Request("name")%>"> <input type="text" name="phone" size="20" value="<%=Request("phone")%>"> |
|
GreatWeb1
Newbie Joined: March/31/04 Location: United States Status: Offline Points: 26 |
Post Options
Thanks(0)
|
Also if you don't feel comfortable editing the SalesCart software, you can point the form to a page containing these codes. Just replace the variable with your info.
**This is for Windows 2003 Server** <%@ LANGUAGE="VBScript.Encode" %> <% mymail = "YOUREMAILADDRESS@domain.COM" sitename = "YOUR SITE NAME" mysubject = sitename & "(" & Request.Form("Subject") & ")" Dim objMail, themessage Set objMail = Server.CreateObject("CDO.Message") themessage = themessage & chr(13) themessage = themessage & "Name: " & Request.Form("name") & chr(13) themessage = themessage & "Phone: " & Request.Form("phone") & chr(13) themessage = themessage & "Email Address: " & Request.Form("FromEmail") & chr(13) themessage = themessage & " " & chr(13) themessage = themessage & Request.Form("Message") & chr(13) themessage = themessage & " " & chr(13) themessage = themessage & " " & chr(13) themessage = themessage & "Sent On: " & date & chr(13) themessage = themessage & " " & chr(13) objMail.From = Request.Form("FromEmail") objMail.To = Request.Form("Email") objMail.Subject = mysubject objMail.TextBody = themessage objMail.Send Response.Redirect "your_thank_you_page.html" set objMail = nothing %> |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |