logoon  windows
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Forum Register Log in  RSS Apache Lounge


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored by anyone.

Your donations will help to keep this site alive and well, and continuing the building of the binaries.




PHP address values

 
Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner



View previous topic :: View next topic  
Author Message
Neville



Joined: 04 Oct 2006
Posts: 8

PostPosted: Tue 17 Oct '06 13:53    Post subject: PHP address values Reply with quote

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: 4886
Location: Germany, Next to Hamburg

PostPosted: Tue 17 Oct '06 13:56    Post subject: Reply with quote

$mytring=$_GET['area'];
Back to top
Neville



Joined: 04 Oct 2006
Posts: 8

PostPosted: Tue 17 Oct '06 13:58    Post subject: Reply with quote

thanks mate, quick reply 2 Smile
Back to top
Brian



Joined: 21 Oct 2005
Posts: 208
Location: Puyallup, WA USA

PostPosted: Tue 17 Oct '06 19:54    Post subject: Reply with quote

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: 4886
Location: Germany, Next to Hamburg

PostPosted: Tue 17 Oct '06 22:09    Post subject: Reply with quote

Enabling register_globals to on open a lot of security holes. Also when register_globals is on, you habe to code cleaner Wink
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1