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:[EMAIL PROTECTED]]
Sent: 01 August 2002 15:30
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to