RE: [PHP-WIN] Re: Problem in passing parameters

From: Date: Thu, 01 Aug 2002 15:10:14 +0000
Subject: RE: [PHP-WIN] Re: Problem in passing parameters
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15064@lists.php.net to get a copy of this message
v4.2.x has register globals set to Off by default. Is that the case for your PHP configuration? If yes you can either switch them to On in your php.ini file (security implications however...) else you have to reference these variables via the super globals... so taking Lung's example ... <? // Just the ones we want ... $username = $_GET['username']; $password = $_GET['password']; // or all vars.... extract($_GET); ?> HTH Rich -----Original Message----- From: cprc [mailto:cprc@btclick.com] Sent: 01 August 2002 15:30 To: php-windows@lists.php.net Subject: [PHP-WIN] Re: Problem in passing parameters Hi Lung - you have precisely the same setup as myself = php 4.2.2 Apache and Win2000. BUT I can't manage to get the browser to work properly -same problem as you had. I would appreciate it if you would send my your httpd.conf file and any other file you think will solve my problem as I have spent far too many hours in the dark over this one!! Thanks in advance. Chris "Lung" <mllo@sinaman.com> wrote in message news:20020712152656.25076.qmail@pb1.pair.com... > Hi, > > I have built a form for inputting username & password and called login.php > to handle. However, I fail to pass the variables to index.php like: > http://localhost/php/login.php?username=test&password=test. > When I check the > variables in login.php, it said these variables are unset. Please adivse how > to solve it! I am using IIS & PHP 4.2.1 in Window 2000. > Thanks! > > Lung > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#15064) next »