Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Form Submit 
 
I am in the process of making a form for my site so that people can order stuff from me. I have it set up already so they can put their name, then i have a drop down menu with things they can choose. Then under that i have those circles so they can chose like one thing to upgrade on the item they have chosen. Then i have 2 text boxes at the bottom. Below all this at the very bottom i have a "Place Order" button that i would like to send me and e-mail with what people have chosen on my form. Does anyone know what the coding is for this? Any help is much appreciated!
 



 
tarilottaSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Form Submit 
 
Use the mail() fuction included in php.
 



 
novice programmerSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Form Submit 
 
tarilotta wrote: [View Post]
I am in the process of making a form for my site so that people can order stuff from me. I have it set up already so they can put their name, then i have a drop down menu with things they can choose. Then under that i have those circles so they can chose like one thing to upgrade on the item they have chosen. Then i have 2 text boxes at the bottom. Below all this at the very bottom i have a "Place Order" button that i would like to send me and e-mail with what people have chosen on my form. Does anyone know what the coding is for this? Any help is much appreciated!


Check this, i used some months ago

http://www.skaro.net/form-mail/index.html.
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Form Submit 
 
zuker i know about the "mailto:whoever@whatever.com" command, thats what im using, but it seems to make people open the program Outlook Express to send the mail and if they dont have that configured it tells them that they cant send the e-mail... and I want it to send automatically, HTML cant do this as it is not a command code, but php can, again, this is why i was wondering if it is possible to use php on these sites.. whenever i put php on it seems to mess up...
 



 
Last edited by tarilotta on Mon 18 Feb, 2008 10:13; edited 1 time in total 
tarilottaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Form Submit 
 
alright, i found out why the php wouldnt work, i had been typing something wrong... LOL
now i have the same form set up in php...
but i cant find what php code to use to make my form automatically send me a email as soon as whoever is filling out this form hits submit. I tried the mail($to, $subject, $message) but that wouldn't work, i think ive just been putting it in the wrong place, LOL...


Quote:
<?php
$In-Game Name = $_POST["In-Game Name"];
$Ship Name = $_POST["Ship Name"];
$Quantity = $_POST["Quantity"]
$Refit = $_POST["Refit"];
$Best Time to Contact = $_POST["Best Time to Contact"];
?>
<html>
<head>
<title>Order Form</title>
</head>
<body>
<form method="post" action="shipshop2.php">
In-Game Name:<input type="text" size="12" maxlength="50" name="In-Game Name"><br />
Ship Name: <select name="Ship Name">
<option value="--Choose Ship--">--Choose Ship--</option>
<option value="Alexander Fourth Rate">'Alexander' Fourth Rate</option>
<option value="Arcadia Xebec">'Arcadia' Xebec</option>
<option value="Capricieux Frigate">'Capricieux' Frigate</option>
<option value="Cerebus Frigate">Cerebus' Frigate</option>
<option value="Conquistador Frigate">'Conquistador' Frigate</option>
<option value="Corsair Xebec">'Corsair' Xebec</option>
<option value="Couronne Galleon">'Couronne' Galleon</option>
<option value="Defiant Frigate">'Defiant' Frigate</option>
<option value="Deliverance Frigate">Deliverance' Frigate</option>
<option value="Desperation Raft">Desperation' Raft</option>
<option value="Hercules Frigate">Hercules' Frigate</option>
<option value="Hermes Packet-Boat">'Hermes' Packet-Boat</option>
<option value="Invincible First Rate">'Invincible' First Rate</option>
<option value="Locust Corvette">'Locust' Corvette</option>
<option value="Mediator Cutter">'Mediator' Cutter</option>
<option value="Migone Indiaman">'Migone' Indiaman</option>
<option value="Migone Privateer Indiaman">'Migone' Privateer Indiaman</option>
<option value="Mordaunt Fourth Rate">'Mordaunt' Fourth Rate</option>
<option value="Myrmidon Frigate">'Myrmidon' Frigate</option>
<option value="Mystique Poleacre">Mystique' Poleacre</option>
<option value="Oliphant Indiaman">'Oliphant' Indiaman</option>
<option value="Postillionen Frigate">'Postillionen' Frigate</option>
<option value="Prince First Rate">'Prince' First Rate</option>
<option value="Raa Frigate">'Raa' Frigate</option>
<option value="San Mateo Galleon">'San Mateo' Galleon</option>
<option value="Stralsund Frigate">'Stralsund' Frigate</option>
<option value="Tigre Frigate">'Tigre' Frigate</option>
<option value="Trinity Second Rate">'Trinity' Second Rate</option>
<option value="Triumphant Second Rate">'Triumphant' Second Rate</option>
<option value="Valient Third Rate">'Valient' Third Rate</option>
<option value="Wenden Third Rate">'Wenden' Third Rate</option>
</select>
Quantity: <select name="Quantity">
<option value="-Quantity-">-Quantity-</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select><br />
If You Want It Refitted, Please Choose Which Type of Refit You Would Like:<br />
Mastercraft:<input type="radio" value="Mastercraft" name="Refit"><br />
Heavy:<input type="radio" value="Heavy" name="Refit"><br />
Sleek:<input type="radio" value="Sleek" name="Refit"><br />
<text>Please enter what time of day would be best to contact you in game, please include time zone...</text><br/>
<textarea rows="10" cols="50" name="Best Time to Contact" wrap="physical">The best time to contact me would be...</textarea><br />
<input type="submit" value="Place Order">
</form>
<?


So this is what i have so far. This makes the form correctly and i can enter all my info and hit enter and it takes me to another page i have set up. All i cant seem to find is the way to make it so that one the user clicks submit it will e-mail me their information they have entered....
Any thoughts as to how i can go about making this happen?



(I am making this for a game which is why its got weird names in it, LOL)
 



 
tarilottaSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events