Hello,
"Eugene Wolff" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the following script. When I open it says:
>
> Notice: Undefined variable: submit in c:\inetpub\wwwroot\phpTest9.php
> on line 4 Although the input boxes all show fine. Obviously it does
> not do the first part of the code because ($submit) is not equal to
> true.
> <html>
> <body>
> <?php
> if ($submit){
Try
if ($_POST['submit']){
instead.
I think the problem is about "register_globals"--discussed a lot in PHP-
GENERAL.
Check the manual for more info:
http://www.php.net/manual/en/language.variables.predefined.php#
language.variables.superglobals
or, just check the archives:
http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=register_
globals&q=b
HTH,
- E
...[snip]...
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php