| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: PHP address values |  |  
| Author |  |  
| Neville 
 
 
 Joined: 04 Oct 2006
 Posts: 8
 
 
 | 
|  Posted: Tue 17 Oct '06 13:53    Post subject: PHP address values |   |  
| 
 |  
| How to i get php to recognise http php variable values on a local host 
 eg http://localhost/something/index.php?area=news
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Tue 17 Oct '06 13:56    Post subject: |   |  
| 
 |  
| $mytring=$_GET['area']; |  |  
| Back to top |  |  
| Neville 
 
 
 Joined: 04 Oct 2006
 Posts: 8
 
 
 | 
|  Posted: Tue 17 Oct '06 13:58    Post subject: |   |  
| 
 |  
| thanks mate, quick reply 2  |  |  
| Back to top |  |  
| Brian 
 
 
 Joined: 21 Oct 2005
 Posts: 209
 Location: Puyallup, WA  USA
 
 | 
|  Posted: Tue 17 Oct '06 19:54    Post subject: |   |  
| 
 |  
| You could unwisely enable Register Globals to On which would eliminate the need to use $_GET and $_POST.  Also you may wish to be aware if you POST data from a form it would be: 
 $variable = $_POST['varname'];
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Tue 17 Oct '06 22:09    Post subject: |   |  
| 
 |  
| Enabling register_globals to on open a lot of security holes. Also when register_globals is on, you habe to code cleaner  |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |