Creating a subscription form in Dream Weaver

Discussion in 'Software' started by mysticscooby, May 19, 2012.

  1. mysticscooby

    mysticscooby Private E-2

    Hello, :cry
    I am trying to create a subscription form for my site in Dreamweaver and can't get it to send the into to my email... Here is a copy of the code...

    <form action="formtoemail:contactus@lifesmysticaljourney.com" method="get" enctype="multipart/form-data" name="Subscription" target="_self" id="Subscription">
    First name: <span id="sprytextfield1">
    <input type="text" name="text1" id="text1" />
    <span class="textfieldRequiredMsg">A value is required.</span></span>
    <p>Last name: <span id="sprytextfield3">
    <input type="text" name="text2" id="text2" />
    <span class="textfieldRequiredMsg">A value is required.</span></span></p>
    <p>Email Address: <span id="sprytextfield4">
    <input type="text" name="text3" id="text3" />
    <span class="textfieldRequiredMsg">A value is required.</span></span></p>
    <p>
    <input type="submit" name="button" id="button" value="Submit" />
    </p>
    </form>​

    And the page where you can see the form is at http://mysticscooby.com/newsletter%20subscriptions.html I would also like the person to end up at my thank you page after clicking submit. They should end up at http://mysticscooby.com/Newsletter%20thank%20you.html

    Can someone help me please?
    Thank you!
     
  2. gamecoding27

    gamecoding27 Private E-2

    Hey buddy I will help you out. HTML (as far as I know) can't send an email alone, unless you are doing some kind of newage HTML5 stuff with that action="formtoemail:" bit, I only know of doing it using PHP or something similar.

    what you would do is make is something like action="somePhpSendMailFile.php"

    and inside of that file you would send the mail with the mail() function http://us3.php.net/manual/en/function.mail.php

    if you can't get it figured out let me know
     

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