Re: newbie question regarding URL parameters
| From: | Roman Neuhauser | Date: | Tue, 09 Jan 2007 18:41:38 +0000 |
| Subject: | Re: newbie question regarding URL parameters | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246800@lists.php.net to get a copy of this message | ||
# buddhamagnet@gmail.com / 2007-01-09 17:36:55 +0000:
> Wow, there are some really bitchy, unattractive people here. No wonder some
> people bail out of IT. Don't confuse knowledge for wisdom.
I don't see anything bitchy in the whole email. Don't confuse terseness
with bitching.
Oh, and also don't top-post, thanks.
> On 1/9/07, tedd <tedd@sperling.com> wrote:
> >
> >At 9:17 PM -0500 1/5/07, <tg-php@gryffyndevelopment.com> wrote:
> >>You'll probably get 50 answers to this, but here's probably what
> >happened.
> >>
> >>There's a setting called "register globals" that will turn your
> >>name=me and age=27 into $name = "me" and $age = "27". It used to
> >>be
> >>turned ON by default. This was generally considered to be bad
> >>security, so it now defaults to OFF.
> >>
> >>To get these variables, just use the $_GET system variable.
> >>
> >>$name = $_GET['name'];
> >>$age = $_GET['age'];
> >>
> >>Easy!
> >>
> >>Best of luck!
> >>
> >>-TG
> >
> >Just to add to -TG advice, you should also clean those inputs. IWO,
> >make sure the values fall within what you expect. Basic security.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991