simple HTML form

Discussion in 'HTML & Website Design' started by sudarshan1210, Sep 10, 2007.

  1. #1
    hii,
    I made simple form.Now i have 2 image buttons on it. CLEAR & SUBMIT
    Now i am confused, how to use this button. i mean i want clear to clear all form to default and submit button to send details to my email?
    How do i do it? i mean what tags or attributes i will use for both buttons.I want the button to email me the data directly.
    Thanks
    -Sudarshan bhat
     
    sudarshan1210, Sep 10, 2007 IP
  2. livehybrid

    livehybrid Active Member

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    You will need some PHP as a backend to send the email. Try posting in the PHP Programming section?
     
    livehybrid, Sep 10, 2007 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <input type="reset" value="Clear" /> is the code for your reset button

    To send the email you need some server side code such as .Net (or if you must PHP) that collects the form data and sends it as an email.
     
    AstarothSolutions, Sep 10, 2007 IP
  4. sudarshan1210

    sudarshan1210 Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Guys thanks for the help.I posted it on php forum and they helped me.Thanks the reset button also worked..
     
    sudarshan1210, Sep 10, 2007 IP
  5. Notting

    Notting Notable Member

    Messages:
    3,210
    Likes Received:
    335
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Notting, Sep 10, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Which won't do a damn bit of good if the person using the form disables JavaScript in their browser or is using a browser which doesn't support it.

    On average, the only thing you should ever use JavaScript for when it comes to forms is to pre-validate form input data or to enhance the user experience of the form by making it easier to present or interact with the form controls or content already hard-coded into the HTML (which should be visible when scripting is disabled or not supported).
     
    Dan Schulz, Sep 10, 2007 IP