Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2004, 03:28 AM
Dane
Unregistered

Posts: n/a

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 ?
Reply With Quote
  #2  
Old 09-29-2004, 07:57 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,927

$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
Reply With Quote
  #3  
Old 09-29-2004, 09:20 AM
Dane
Unregistered

Posts: n/a

Medium began in PHP 4.1.0
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I use variables?? fwa Delta Force 6 05-16-2004 06:17 AM


All times are GMT -5. The time now is 08:58 AM.




Powered by vBulletin®