View Full Version : need script: an 'email back to my address' script


vicary
05-24-2003, 05:45 AM
Hey all,

Hope you can help me. I have a page on my site that I want people to be able to mail back to my own email address. Are there any scripts or codes that will allow me to do this?

See, I have a table set up with links and when someone clicks on a link to order a product, it takes them to a 'confirm order' page that I made up.

If the customer wishes to continue with the order, I would like them to email me that page by just clicking on an 'email this to:' button.

I would also like them to be able to fill in their name and address and send it to me as well on that page before sending it to me, but I don't know how to do this either.

Hope this is understandable. If not, email me and I can then try to explain more if you want.

Much appreciation!

Stormx
05-24-2003, 01:24 PM
So you have an order page, they select what orders they want, then fill in their name and other details, and click the order button - gotcha, use this script:

-----

<form name="form1" action="mailto:youremail@whatever.com" enctype="text/plain" method="post">
<input TYPE="CHECKBOX" NAME="order1" VALUE="Do you want to order product 1?" CHECKED><br><input TYPE="CHECKBOX" NAME="order2" VALUE="Do you want to order product 2?">
<br><input TYPE="CHECKBOX" NAME="order3" VALUE="Do you want to order product 3?" CHECKED><br> Please fill in your name <br> <input TYPE="TEXT" NAME="name" SIZE="30"> <br> <input TYPE="SUBMIT" VALUE="Submit">

-----

Remember to change the form to your specifications and change your email

Dude128
05-24-2003, 05:12 PM
note that the code stormx posted will NOT work in most browsers. you will instead need to use a form that uses server side processing.

search the forum and you should find tons of threads on this.

vicary
05-24-2003, 05:40 PM
If I modified it to suit my needs, would lissa's email form work for most browsers?
Thanks

Dude128
05-24-2003, 05:44 PM
no, that's what the code that stormx posted is. the form action="mailto:..." does not work in most browsers (they just open the default mail application), and that's what Lissa's email form code uses.

vicary
05-24-2003, 06:42 PM
Where would I get one of these that would be as simple as Lissa's email form?
Thanks.

Dude128
05-25-2003, 01:43 AM
http://www.bravenet.com is a popular one

for others and more information (such as what to do if you want to host it on your own server) try searching the forum- it's been brought up a number of times :)