PDA

View Full Version : E-mail form


00XxXxX00
03-06-2003, 03:48 AM
Ok, well I made a email form for sticker orders, how would I make it so all of the information they type/select is sent to my email?? (zeroskater88@eboarding.net) This is the code

<body>

<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p>How many stickers would you like?<br><input type="radio" value="V1" checked name="R1">One
Sticker<br><input type="radio" name="R1" value="V2">Two Stickers<br><input type="radio" name="R1" value="V3">Three
Stickers</p>
<p>What is your address?<br>State: <input type="text" name="T1" size="19">
Zip: <input type="text" name="T2" size="20"><br>Street: <input type="text" name="T3" size="20">Town/City:
<input type="text" name="T4" size="20"><br><br><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

</body>

Now.. I just want it sent to my e-mail adress?

cg9com
03-06-2003, 04:49 AM
action="mailto:email@email.com"

Mhtml
03-06-2003, 06:45 AM
The problem with doing it that way is that if the user doesn't have a default mail account ie an account operating through in MS Outlook, they will not be able to send it. Also they will get a nasty little popup dialogue telling that it is being sent by email and such.

A better alternative is to use a server side script.

00XxXxX00
03-06-2003, 04:40 PM
Are there anyother ways to do it?

cg9com
03-07-2003, 02:27 AM
client side or server side, server side is better in my opinion, but it depends on whether you have access to those capabilities.

basically with a mailto function, it will open the users default email application, to prevent this you can use a server side application that sends the mail for the user, eliminating that step, and getting rid of that message like Mhtml pointed out.
also, if the user doesnt have a default email (specified through browser options i believe) they cant send the mail with your form.

Saj
03-07-2003, 03:40 PM
Add this to the form tag.

enctype="text/plain"

The two pop-ups still come up, the a default mail client doesn't.

The only other way around it is a cgi script. Try the scriptarchive.com formmail script. It works well for me.

cg9com
03-08-2003, 12:08 AM
but if im not mistaken, if hes using a client side option, if it doesnt open the mail client, it doesnt send the mail.

redhead
03-08-2003, 11:29 AM
whammy's got a grand remoteley hosted form sending type thing @ www.solidscripts.com... a little easier than having to set up your own one... client side ones only ever scare the user away with their big "this is gonna give away your email address" prompt and then opening outlook express... i wouldnt touch 'em with a barge pole