Is there some reason why form variables might not be getting passed through on certain hosts? On some hosts I have been having a problem even with a simple little script like this. Everytime the form is submited, it goes right back to the form. It should go to the part //do stuff.
if ($formsubmit != "yes") {
<form action="samepage.php" method="post">
<input type="test" name="var2">
<input type="hidden" name="formsubmit" value="yes">
<input type="submit" value="Submit">
</form>
} else
//do stuff
}