something i just thought of ... try this ....
<?
$cisco = " "; // set $cisco to equal nothing
?>
<form>
<input type="text" name="cisco">
<input type="submit" name="submit">
</form>
<?
if( $submit ) // make a clause so that only when submit is pressed will this part run
{
echo( "$cisco" );
}
?>
see if that makes a difference
> -----Original Message-----
> From: Honza Hejdrych [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 11 July 2002 2:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] strange error
>
>
> Have a look at your PHP.INI, check ERROR HANDLING section.
> You have probably set something like:
>
> error_reporting = E_ALL & ~E_NOTICE
>
> This setting means you will see all errors including warnings.
> You should set this to (for example):
>
> error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
>
> This setting will show only errors on in your scripts.
>
> hh
>
> Dne 11. červenec 2002, fungi, <[EMAIL PROTECTED]> napsal:
>
> > I have searched for it on the web
> > and it seems like alot of new comers to php is having this problem
> >
> > "Fungi" <[EMAIL PROTECTED]> źśźgŠóślĽóˇsťD
> > :[EMAIL PROTECTED]
> > > I just did...
> > > it works, but it still says undefined variable
> > > "Peter" <[EMAIL PROTECTED]>
> > > ???????:[EMAIL PROTECTED]
> > > > have you tried restarting IIS since u changed the register globals?
> > > >
> > > > > -----Original Message-----
> > > > > From: fungi [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, 11 July 2002 1:33 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: [PHP-WIN] strange error
> > > > >
> > > > >
> > > > > is register_globals suppose to be on or off?
> > > > > I heard of it is set to on will cause some security problem
> > > > > "Fungi" <[EMAIL PROTECTED]> źśźgŠóślĽóˇsťD
> > > > > :[EMAIL PROTECTED]
> > > > > > yes it is on
> > > > > >
> > > > > > "Peter" <[EMAIL PROTECTED]>
> > > > > > ???????:[EMAIL PROTECTED]
> > > > > > > am not sure... it works fine for me ...
> > > > > > >
> > > > > > > do you have allow_call_time_pass_reference set to on?
> in php.ini?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: fungi [mailto:[EMAIL PROTECTED]]
> > > > > > > > Sent: Thursday, 11 July 2002 12:54 PM
> > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > Subject: Re: [PHP-WIN] strange error
> > > > > > > >
> > > > > > > >
> > > > > > > > still doesn't work..
> > > > > > > > i changed the register_globals from "off" to "on" in php.ini
> > > > > > > > and tested the original code. This time it works,
> but it still
> > > > > displays
> > > > > > > > undefined variable "cisco"
> > > > > > > >
> > > > > > > > why?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > "Peter" <[EMAIL PROTECTED]>
> > > > > > > > ???????:[EMAIL PROTECTED]
> > > > > > > > > try this..
> > > > > > > > >
> > > > > > > > > <?
> > > > > > > > > if ($submit)
> > > > > > > > > {
> > > > > > > > > echo("$cisco");
> > > > > > > > > }
> > > > > > > > > ?>
> > > > > > > > > and maybe add $PHP_SELF for the action.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: fungi [mailto:[EMAIL PROTECTED]]
> > > > > > > > > > Sent: Thursday, 11 July 2002 12:14 PM
> > > > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > > > Subject: [PHP-WIN] strange error
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > I have problem testing PHP on my own server
> setup with IIS5.
> > > > > > > > > > I tested my server with
> > > > > > > > > >
> > > > > > > > > > <?php
> > > > > > > > > > phpinfo();
> > > > > > > > > > ?>
> > > > > > > > > >
> > > > > > > > > > and everything goes fine, but when i test another
> > > > > program such as
> > > > > > > > > >
> > > > > > > > > > <html>
> > > > > > > > > > <body>
> > > > > > > > > > <form>
> > > > > > > > > > <input type="text" name="cisco">
> > > > > > > > > > <input type="submit">
> > > > > > > > > > </form>
> > > > > > > > > > <?php
> > > > > > > > > > echo("$cisco");
> > > > > > > > > > ?>
> > > > > > > > > > </html>
> > > > > > > > > >
> > > > > > > > > > it prints out
> > > > > > > > > >
> > > > > > > > > > Notice: Undefined variable: cisco in
> > > > > > > > > > c:\inetpub\wwwroot\fungi.php3 on line 8
> > > > > > > > > >
> > > > > > > > > > but when i tested it on my schools' server, it
> runs fine..
> > > > > > > > > >
> > > > > > > > > > why is this happening?
> > > > > > > > > >
> > > > > > > > > > ps. i am using the latest PHP version
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > PHP Windows Mailing List (http://www.php.net/)
> > > > > > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > PHP Windows Mailing List (http://www.php.net/)
> > > > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP Windows Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > > >
> > >
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> ______________________________________________________________________
> Reklama:
> Jake bude pocasi? http://pocasi.seznam.cz
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>