Re: Something wrong
| From: | Chris Hewitt | Date: | Fri, 06 Feb 2004 08:29:06 +0000 |
| Subject: | Re: Something wrong | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-12725@lists.php.net to get a copy of this message | ||
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