#1
|
||
|
Variables
Which one do you find better to use when coding your website. Because im reading my 1000 PHP and MySQL Book and ive come to the decision that im going to be using the Medium Style one:
$username // Short Style $_POST['username'] // Medium Style $HTTP_POST_VARS['username'] // Long Style The reason ive made the decision to use the Medium Style Variable is because the Short Style is in some what way insecure and they say that the Long Style isnt going to be around forever. Just a random question to you peeps, which one will you be using and which one do you prefer using ? |
#2
|
||
|
$username the short variable will only work if register_blobals is on. More and more people are turning it off, $HTTP_POST_VARS will still be around for awhile, but I use $_POST, which starts I think in PHP 4.0.x. So anyone below PHP 4.0.x can't use the script with $_POST. I got sick of writing http_post_vars all the time so I stick with $_POST.
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
Medium began in PHP 4.1.0
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how do I use variables?? | fwa | Delta Force | 6 | 05-16-2004 06:17 AM |