Re: Help with login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 8:37 AM -0400 6/27/08, Dan Shirah wrote:
 >
 Hey, I think this should be working but it doesn't seem to be.

 $_GET["page"]
 $_SERVER['PHP_SELF']



What is the error message you are getting?

And, why are you using different quotes throughout all of your script?

I believe you should use single quotes for all of your server generated
variables like $_GET['page'], $_SERVER['PHP_SELF'], $_POST['user']

While it isn't a killer, using different quotes isn't best practice.

I use single quotes for just about everything in PHP except when the string contains a variable.

So, in my code when I see double quotes, I also expect to see a variable -- it's a debugging check for me.

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux