Re: PHP Security and Code Design
| From: | Adam Alkins | Date: | Wed, 10 Jul 2002 20:27:59 +0000 |
| Subject: | Re: PHP Security and Code Design | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20480@lists.php.net to get a copy of this message | ||
> I understand that this applies to data put into a form to be submitted to
a
> database (or another page, I guess), but does it also apply to
> variable/value pairs passed along the URL from a hyperlink (<a
> href="foo/bar.php?thisVar=thisVal>Click here.</a>)? I couldn't quite get
it
> from the explanation above. Would I need to reference the passed variable
> with $_GET["thisVal"] on the receiving page (bar.php)? I'm sure I would
have
> to if $thisVar was passed from a form with the GET method, but wasn't sure
> about the hyperlink stuff.
>
> Anybody working with register globals off already that can clear this up?
Yes. URL passed variables are access via the GET method. So page.php?foo=bar
is accessed by $_GET['foo']
--------------
Adam Alkins
http://www.rasadam.com
--------------