|
Posted by niraj.sanghvi on 12/20/76 11:44
I just upgraded to PHP5 from PHP4, and most of the transition was
seamless. But my forms don't appear to be working correctly now. Where
I have the following:
if($runquery) { Use $POST values... }
else {
<form name="thequery" method="post" action="thispage.php">
Query:<br>
<input type="text" name="name" size="40">
<br><br>
<input type="submit" name="runquery" value="submitname">
</form>
}
where the first part checks if the form was submitted (it sends the
post values back to the same page), and otherwise displays the form. In
PHP4 this worked fine. In PHP5, it is displaying the form over and
over. The ($runquery) condition is never met. I could change it to
check if(isset($_POST['name'])), but I would like to avoid changing
large amounts of code if I can.
Any suggestions?
Navigation:
[Reply to this message]
|