dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Form Parsing

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    8

    Question Form Parsing

    I have managed to create this simple form, how do I parse info the user clicks on.

    HTML Code:
    <form id='sampleform' method='post' action='myurl.com' >
       <p>
       Name: <input type='text' name='Name' />
       </p>
       <p>
       Email: <input type='text' name='Email' />
       </p>
    <input type="radio" name="subject" value="maths" /> &pound;10
    <input type="radio" name="subject" value="physics" /> &pound;5
    <input type="radio" name="subject" value="physics" /> &pound;3
    &pound;<input type='text' name='donate-amount' />
       <p>
       <input type='submit' name='Submit' value='Submit' />
       </p>
    </form>

  2. #2
    Join Date
    Mar 2011
    Posts
    1,156
    Generally, the <form>'s 'action' attribute points to a script on a server that parses the user's submission. You'll need to be more specific about what you're doing and the software involved to get a more detailed answer.

  3. #3
    Join Date
    Apr 2012
    Posts
    8
    Hello

    This form is on a flat HTML page which will go to a dynamic page.

  4. #4
    Join Date
    Mar 2011
    Posts
    1,156
    Then it's the software in the dynamic page that will be parsing the user's data unless you add some JavaScript to the HTML page that contains the form. It all depends on what you want to do and how you want to do it.

  5. #5
    Join Date
    Mar 2012
    Posts
    1,814
    HTML has the capacity to produce a form and take user input, but that is all! You need to use PHP or JavaScript to do anything with the input.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles