Ewwwwwiiie! use CGI, and read Ovid's CGI course on how to use it and why.
You'll come to find that manually trying to parse form data gets tiresome and leads to broken code 9/10 times1.
1 Statistics not validated by the FDA or any other official affiliation.