List:General Discussion« Previous MessageNext Message »
From:Chris Knipe Date:June 17 2002 7:34pm
Subject:Re: IIS Issues - Hope Not, Variables undifined in MySql
View as plain text  
It's most definitely a PHP error, not MySQL.

PHP defaults to register_global = on in php.ini.

You'll have to get your variables using $_POST['varname'].  If that still
fails, post your code and we can have a look.


----- Original Message -----
From: "Tokunboh Oladejo" <tokunboh.oladejo@stripped>
To: <mysql@stripped>
Sent: Monday, June 17, 2002 9:12 PM
Subject: IIS Issues - Hope Not, Variables undifined in MySql


> Hi All,
>
> I am running MySql and PHP on IIS 5 (Hope I haven't made a wrong decision)
> however everytime that I tried to send a variable from an HTML code to
MySql
> database or Microsoft Access database, via PHP script I am getting an
> "Undefined Variables .......",  you can test at
www.pentium-3.com/logon.html
> and put in any combination of Username and Password.
>
> I am sending a SELECT statement "$sql="SELECT USERNAME FROM AGENTS WHERE
> USERNAME='$Username' and PASSWORD='$Password'";
>
> I am getting Undefined Variable Username and Password on Line ...
>
> Despite the fact that $Username and $Password has been defined in the HTML
> code, the values is not being carried accross to the php script.
>
> If anyone knows what I am talking about HELLLLPPPPPPPPP !!!!!!!!!.
>
>
> Thanx
> Toks
>
> N.B. :- And yes, I have tried send a simple SELECT statement, it display
the
> result fine.
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <mysql-thread112232@stripped>
> To unsubscribe, e-mail
<mysql-unsubscribe-savage=savage.za.org@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>

Thread
IIS Issues - Hope Not, Variables undifined in MySqlTokunboh Oladejo17 Jun
  • Re: IIS Issues - Hope Not, Variables undifined in MySqlErik Price17 Jun
  • Re: IIS Issues - Hope Not, Variables undifined in MySqlChris Knipe17 Jun
RE: IIS Issues - Hope Not, Variables undifined in MySqlScott L Hathaway17 Jun
RE: IIS Issues - Hope Not, Variables undifined in MySqlTokunboh Oladejo17 Jun