Denis K. Rahmangulov wrote:

I have installed PHP 4.3.4 on Apache 1.3.29 on Windows XP.

When I write next text in file "index.php"
-----------------------------------------------
<?php
if(isset($submit))
{
echo "All Right!"; // This block never work } else {
echo "<form action=index.php>
<input type=submit name=submit></form>";
}
?>
------------------------------------------------
message "All Right!" can't show on page after I push "Submit".


What wrong?
And sorry for my bad english.:-)


Denis,

Your $submit will not be a variable unless you have register_globals turned on in php.ini. As it does not work then I guess register_globals is off (a good thing for security). Try using $_POST['submit'] instead in your "if" statuement.

Hope this helps
Chris

Reply via email to