RE: [PHP-WIN] Newbye question

From: Date: Sun, 23 Jun 2002 18:51:20 +0000
Subject: RE: [PHP-WIN] Newbye question
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14357@lists.php.net to get a copy of this message
Check out the new global_register that phpv4.2 employs, variables cannot be set in the http request anymore, in order to access texto, you need to access $_GET[texto] > -----Original Message----- > From: Saci [mailto:nospam@bol.com.br] > Sent: 23 June 2002 05:56 > To: php-windows@lists.php.net > Subject: [PHP-WIN] Newbye question > > > I installed php 4.2.1 on windows XP using the PHP 4.2.1 installer > [897Kb] - > 13 May 2002 > > Apparently php is working since the classic hello word from php > is running, > but I have some problems with variables > > I have the following php code, who runs perfectly on my isp, but give a > message error on my machine who use windows xp the message are > > Notice: Undefined variable: texto in > d:\inetpub\wwwroot\souio\php\teste03.php on line 5 > > I'm sure the code is correct because they run on my ISP (W2000) > without any > problem > > > what is wrong witch my installation? > > > > The code are > > <html> > <head><title>Learning PHP</title></head> > <body> > <?php > if ($texto != "") > echo "You typed \"$texto\"<br><br>"; > ?> > <form method=post action="<? echo $PATH_INFO; ?>"> > <input type="text" name="texto" value="" size=10> > <br> > <input type="submit" name="sub" value="Enviar!"> > </form> > </body> > </html> > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.windows (#14357) next »