html submittable form

Discussion in 'Software' started by 3.14 = Pie, Jun 29, 2006.

  1. 3.14 = Pie

    3.14 = Pie Private E-2

    How do I create a form with text fields and a submit button and enable it to store the data and email it to an address?
     
  2. Raits

    Raits Private E-2

    You use HTML to make the form and then use PHP or Perl or whatever other language that is capable of sending data to send it.
    Example form:
    Code:
    <form method="POST" action="send_data.php">
    Data1: <input type="text" name="data1" /><br />
    Data2:<br /><textarea name="data2></textarea><br />
    Data3: <input type="password" name="data3" /><br />
    <input type="submit" value="Send" /><input type="reset" value="Reset" />
    </form>
    
    And the php function you need is mail();.

    You can also search the forums for examples, here's one from a few months ago: http://forum.majorgeeks.com/showthread.php?t=89851
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds