Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Website form submit to email?

  1. #1
    Member
    Join Date
    Mar 2003
    Location
    Boston MA
    Posts
    76

    Website form submit to email?

    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?

  2. #2
    Barrista
    Join Date
    May 2007
    Location
    Victoria, BC
    Posts
    1,674
    The wonderful world of PHP!

    Here's a basic PHP Emailer that our own mkeefe put together:
    http://scriptplayground.com/tutorial...iler-with-PHP/

  3. #3
    Member
    Join Date
    Mar 2003
    Location
    Boston MA
    Posts
    76
    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??

  4. #4
    Member
    Join Date
    Mar 2003
    Location
    Boston MA
    Posts
    76
    little more help... anyone?? Please

  5. #5
    Programming Ninja mkeefe's Avatar
    Join Date
    Feb 2003
    Location
    Boston
    Posts
    7,794
    Create or open an HTML page, paste the form

    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>
    Create a new file, name it "contact.php" and paste the following code:

    Code:
    COPY THE CODE FROM THE LAST CODE BLOCK ON scriptplayground.com. 
    
    This forum is not displaying it properly.
    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().

    Hope that helps,

    Matt

  6. #6
    Member
    Join Date
    Mar 2003
    Location
    Boston MA
    Posts
    76
    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.

  7. #7
    Member
    Join Date
    Mar 2003
    Location
    Boston MA
    Posts
    76
    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]

  8. #8
    Member
    Join Date
    Mar 2003
    Location
    Boston MA
    Posts
    76
    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>

  9. #9
    Member
    Join Date
    Mar 2003
    Location
    Boston MA
    Posts
    76
    This is the last thing I need to do to finish this website. Can someone please help me??

  10. #10
    Member
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    51
    Originally posted by mkeefe
    Create or open an HTML page, paste the form

    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>
    Create a new file, name it "contact.php" and paste the following code:

    Code:
    COPY THE CODE FROM THE LAST CODE BLOCK ON scriptplayground.com. 
    
    This forum is not displaying it properly.
    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().

    Hope that helps,

    Matt
    contact.php will be on the last code block of the above link.. as stated

    [Edited on 2/6/2009 by tazplay]

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •