Click to See Complete Forum and Search --> : whats the difference?
moondance
07-29-2003, 09:52 AM
is there a difference between :
$var = $_POST['var']
and
$var = $HTTP_POST_VARS['va'];
i'm trying to create a member login. Does anyone know a good login tutorial?
$_POST is a superglobal that was introduced in PHP 4.1.0. $HTTP_POST_VARS has been depreciated by $_POST, but still is functional, and is needed in older versions of PHP.
As far as a login script, this might help you, though it is very, very basic: http://forums.webdeveloper.com/showthread.php?s=&threadid=9950
Da Warriah
07-29-2003, 12:28 PM
well that post might help, but if youre looking for something where members can register and then use their login name, etc, then youll have to use something like databases or arrays in order to store the info...the script in that post only handles one username and password, and would have to be "suped up" in order to work for more than username and pass...
if youre willing to use databases for this (which i personally wouldnt unless i were expected 300 people to sign up), you can use this tutorial:
http://robouk.mchost.com/tuts/tutorial.php?tutorial=login
Originally posted by Da Warriah
and would have to be "suped up" in order to work for more than username and pass... Yep, hence my statement about it being "very, very basic". It is simple meant to show people how to get started, not create a full blown login system.
Also, I personally would use a DB for far less than 300 users. Even on a far lesser scale (say 100) that would get pretty unmanageable.
Da Warriah
07-30-2003, 08:42 AM
lol, just a random number i pulled out of the air, i didnt mean that it was the number that i would start using a database...lol...anyways, yeah i think at about 50-60 people is when i would stop flatfiling and start on a database...
Ok, it just seemed like a very high number to begin using a database at.