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='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>

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

http://swiftmailer.org/
http://phpmaster.com/form-validation-with-php/
http://css-tricks.com/139-nice-and-simple-contact-form/
http://css-tricks.com/examples/NiceSimpleContactForm2/
http://www.helpvid.net/tutorials/dreamweaver/php-script-download.html
http://green-beast.com/gbcf-v3/
http://www.freedback.com/
http://accessify.com/tools-and-wizards/accessibility-tools/quick-form-builder/
http://css-tricks.com/snippets/php/send-email/
http://seo-watch.com/hosting/mail_form.php
http://www.felgall.com/php2.htm
http://www.easyphpcontactform.com/manual.html
http://www.addressmunger.com/contact_form_generator/
http://webgeekworld.com/web_development_resource_details.php?id=42
http://www.webformfactory.com/
http://www.freecontactform.com/email_form.php
http://swiftmailer.org/
http://sourceforge.net/projects/phpmailer/

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 myurl.com 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.
Try


echo $_POST['name'];

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