You are here: PHP5 submit value problem « PHP Programming Language « IT news, forums, messages
PHP5 submit value problem

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация