I want to create a information form on a web page that on Clicking Submit, all applied info will be sent to my E-mail address.
I am using DreamWeaver CS3.
What is the best way to do this?
I want to create a information form on a web page that on Clicking Submit, all applied info will be sent to my E-mail address.
I am using DreamWeaver CS3.
What is the best way to do this?
The wonderful world of PHP!
Here's a basic PHP Emailer that our own mkeefe put together:
http://scriptplayground.com/tutorial...iler-with-PHP/
I could not for the life of me figure out how to do that. Is there maybe an online code builder that I could use to copy and paste the code into the page??
little more help... anyone?? Please
Create or open an HTML page, paste the form
Create a new file, name it "contact.php" and paste the following code:Code:<form method="post" action="contact.php"> <input type="hidden" name="send" value="true" /> <br /><br /> <p>Your Name: <br /> <input name="name" type="text" id="name" /> </p> <p>Your E-mail:<br /> <input name="email" type="text" id="email" /> </p> <p>Your Questions/Comments:<br /> <textarea name="message" cols="40" rows="5" id="message"></textarea> </p> <p><input type="submit" name="submit" value="Submit" /></p> </form>
Now modify the $to and $subject variables shown above to match your own needs. Save this file and upload the HTML and PHP file to a web server that supports PHP and mail().Code:COPY THE CODE FROM THE LAST CODE BLOCK ON scriptplayground.com. This forum is not displaying it properly.
Hope that helps,
Matt
Thanks mkeefe .. You always seem to help me out! I will give this a try at some point this week.
I'm sure I'll have more questions.
I still can't get this form set up right. Not sure what I'm doing wrong.
Also, how do I make the Text fields bigger??
http://forgemotorsautotransport.com/quote.html
[Edited on 1/31/2009 by rufunky]
This is what my form looks like. What should my contact.php look like?
Code:<form method="post" action="contact.php"> <input type="hidden" name="send" value="true" /> <br /><br /> <p>Name: <br /> <input name="name" type="text" id="name" /> </p> <p>Phone:<br /> <input name="phone" type="text" id="phone" /> </p> <p>E-mail:<br /> <input name="email" type="text" id="email" /> </p> <p>Origin City:<br /> <input name="origin city" type="text" id="origin city" /> </p> <p>Origin State:<br /> <input name="origin state" type="text" id="origin state" /> </p> <p>Origin Zip:<br /> <input name="origin zip" type="text" id="origin zip" /> </p> <p>Destination City:<br /> <input name="destination city" type="text" id="destination city" /> </p> <p>Destination State:<br /> <input name="destination state" type="text" id="destination state" /> </p> <p>Destination Zip:<br /> <input name="destination zip" type="text" id="destination zip" /> </p> <p>Year:<br /> <input name="year" type="text" id="year" /> </p> <p>Make and Model:<br /> <input name="make and model" type="text" id="make and model" /> </p> <p>Prefered Contact Method:<br /> <label> <input type="radio" name="Prefered Contact Method:" value="radio" id="Prefered Contact Method:_0" /> Phone</label> <br /> <label> <input type="radio" name="Prefered Contact Method:" value="radio" id="Prefered Contact Method:_1" /> Email</label> <br /> <p>Will the vehicle be operable at the time of shipment ?<br /> <label> <input type="radio" name="Will the vehicle be operable at the time of shipment ?" value="radio" id="Will the vehicle be operable at the time of shipment ?_0" /> Yes</label> <br /> <label> <input type="radio" name="Will the vehicle be operable at the time of shipment ?" value="radio" id="Will the vehicle be operable at the time of shipment ?_1" /> No</label> <br /> <p>Will the vehicle have valid licence plates at the time of shipment ?<br /> <label> <input type="radio" name="Will the vehicle have valid licence plates at the time of shipment ?" value="radio" id="Will the vehicle have valid licence plates at the time of shipment ?_0" /> Yes</label> <br /> <label> <input type="radio" name="Will the vehicle have valid licence plates at the time of shipment ?" value="radio" id="Will the vehicle have valid licence plates at the time of shipment ?_1" /> No</label> </p> <p>Your Questions/Comments:<br /> <textarea name="message" cols="40" rows="5" id="message"></textarea> </p> <p><input type="submit" name="submit" value="Submit" /></p> </form>
This is the last thing I need to do to finish this website. Can someone please help me??
contact.php will be on the last code block of the above link.. as statedOriginally posted by mkeefe
Create or open an HTML page, paste the form
Create a new file, name it "contact.php" and paste the following code:Code:<form method="post" action="contact.php"> <input type="hidden" name="send" value="true" /> <br /><br /> <p>Your Name: <br /> <input name="name" type="text" id="name" /> </p> <p>Your E-mail:<br /> <input name="email" type="text" id="email" /> </p> <p>Your Questions/Comments:<br /> <textarea name="message" cols="40" rows="5" id="message"></textarea> </p> <p><input type="submit" name="submit" value="Submit" /></p> </form>
Now modify the $to and $subject variables shown above to match your own needs. Save this file and upload the HTML and PHP file to a web server that supports PHP and mail().Code:COPY THE CODE FROM THE LAST CODE BLOCK ON scriptplayground.com. This forum is not displaying it properly.
Hope that helps,
Matt
[Edited on 2/6/2009 by tazplay]