Need Help with Form Action Tags

Discussion in 'HTML & Website Design' started by jen03, Jan 26, 2009.

  1. #1
    I'm not sure how to add in action tags so that data submitted through forms is received. I would like submitted data to be sent to an e-mail address. I'm using Dreamweaver to build the site. If you can tell me what and where to add action tags for these forms, I'd really appreciate it.

    Here's a picture of the two forms:

    [​IMG]

    Any suggestions?

    Thank you~
     
    jen03, Jan 26, 2009 IP
  2. dacookiemonn

    dacookiemonn Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Each of your <input> fields should have a name assinged to them:
    ie: <input type="text" name="username">

    if form method="post"
    then user the $_POST[''] var, like this:
    in php, and im assuming you are using php to process the form:

    $foo = $_POST['usernam'];

    that is how to access the input value

    now to process the actual login, that is a whole diff ballgame
     
    dacookiemonn, Jan 26, 2009 IP
  3. boohya

    boohya Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes this is correct... With Dreamweaver 8/cs3/cs4 these options are built into the forms options.
    ************************
    Inserting standard buttons:
    Place the insertion point inside the form outline.
    Select Insert > Form > Button.
    A button appears in the form.
    In the Property inspector, set the button properties as desired.
    ***********************
    Inserting HTML form menus:
    Place the insertion point inside the form outline.
    Select Insert > Form > List/Menu.
    A menu appears in the document.
    In the Property inspector, set the menu properties as desired.


    hope this helps?
     
    boohya, Jan 26, 2009 IP
  4. jen03

    jen03 Peon

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here's the code as it is now (design picture above). This is how the template comes, so what do I add/change so that submitted data is sent to an e-mail address?

    <table width="223" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="30" align="left" valign="top"><input name="textfield2" type="text" style="width:223px; height:18px; font-family:tahoma; font-size:10px; color:#8E7257 " value="Your name"></td>
    </tr>
    <tr>
    <td height="30" align="left" valign="top"><input name="textfield22" type="text" style="width:223px; height:18px; font-family:tahoma; font-size:10px; color:#8E7257 " value="Your e-mail"></td>
    </tr>
    <tr>
    <td align="left" valign="top"><textarea name="textarea" style="width:223px; height:68px; font-family:tahoma; font-size:10px; color:#8E7257; overflow:auto " value="Your name">Your message</textarea></td>
    </tr>
    <tr>
    <td height="27" align="right" valign="bottom"><input name="image2" type="image" src="images/submi.gif" width="82" height="18" style="margin-right:10px "><input name="image2" type="image" src="images/reset.gif" width="82" height="18"></td>
    </tr>
    </table>

    Thanks again~
     
    jen03, Jan 26, 2009 IP