logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


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

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Coding & Scripting Corner View previous topic :: View next topic
Reply to topic   Topic: PHP address values
Author
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: 7288
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: 209
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: 7288
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


Reply to topic   Topic: PHP address values View previous topic :: View next topic
Post new topic   Forum Index -> Coding & Scripting Corner