i think you programmed before comming to php, so try this :
you can send the form to a php file with the http post method. after taht you loop trough the superglobal var $_POST[] using foreach() and validate the content e.g with regular expressions or with simple patterns or just strings.
ali