PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 8th, 2002, 12:18 PM
Blake Blake is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 125 Blake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
$HTTP_GET_VARS

I am directing users to a page using

php Code:
Original - php Code
  1. reassign.php?man=$uid&first=$ufname&last=$usname



I know that the values are being set correctly as I can see the link in the HTML Source code.

However, when reassign.php is loaded I am using
php Code:
Original - php Code
  1. $stafftravel_id = $HTTP_GET_VARS['uid'];
  2. $stafftravel_fname = $HTTP_GET_VARS['ufname'];
  3. $stafftravel_sname = $HTTP_GET_VARS['usname'];



The problem is that none of the values are appearing for $stafftravel_id, $stafftravel_fname, $stafftravel_sname and I don't know why.

Any ideas?

Reply With Quote
  #2  
Old November 8th, 2002, 12:36 PM
Blake Blake is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 125 Blake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: $HTTP_GET_VARS

Why is it that I can stare at something for 30mins and not find out whats wrong, then as soon as I post it, I spot the problem...

Look closely.. I should be using
php Code:
Original - php Code
  1.  
  2. $stafftravel_id = $HTTP_GET_VARS['man'];
  3. $stafftravel_fname = $HTTP_GET_VARS['first'];
  4. $stafftravel_sname = $HTTP_GET_VARS['last'];

Thanks though

Reply With Quote
  #3  
Old November 8th, 2002, 02:25 PM
TylerDurden TylerDurden is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Knoxville, TN USA
Posts: 16 TylerDurden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: $HTTP_GET_VARS

Depending on whether or not the information being passed along with the URL is of a sensitive nature or not, you may want to consider the SGA's, as well as using "POST" instead of "GET". There's also the issue of the "register_globals" directive in the PHP.INI file. A discussion of issues that might interest you can be found at:
http://www.php-forum.com/p/viewtopic.php?t=318
Quote:
Look closely.. I should be using
php Code:
Original - php Code
  1.  
  2. $stafftravel_id = $HTTP_GET_VARS['man'];
  3. $stafftravel_fname = $HTTP_GET_VARS['first'];
  4. $stafftravel_sname = $HTTP_GET_VARS['last'];

Thanks though


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > $HTTP_GET_VARS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway