Looks like you're not using the newer superglobal arrays $_POST, $_GET etc. which replaced the old way of having the variables automagically put into the script by enabling register_globals since PHP 4.2. You have to rewrite your script or enable register_globals. I'll recommend the first option.
BTW, "doesn't work" is very little information to begin with. Any error messages? What does var_dump($answer1); say?
De gustibus non est disputandum.