Form parsing

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

<form id='sampleform' method='post' action='' >
   Name: <input type='text' name='Name' />
   Email: <input type='text' name='Email' />
<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' />
   <input type='submit' name='Submit' value='Submit' />

You need a server-side language like PHP to process the input data. Here are some references for learning how to do that:

Hi jelly46,

I just want to suggest a small correction. In your form use a file name in the action. Right now you have used instead of that use file name for example output.php, so that after the form is submitted it will go to output.php where you can process the form.

I usually process the posted variables in the same script, I would remove you’re action from the form tag (leave it blank). then put this at the top of the page to visualize what you just posted.

echo'<pre>'; print_r($_POST); echo '</pre>';

Now you will have variables to play with.

echo $_POST['name'];

That’s how you get your POST’ed variables.