RE: [PHP-DB] PHP Security and Code Design

From: Date: Wed, 10 Jul 2002 20:30:50 +0000
Subject: RE: [PHP-DB] PHP Security and Code Design
Groups: php.db 
Request: Send a blank email to php-db+get-20482@lists.php.net to get a copy of this message
Thanks, Adam. All clear now. Rich -----Original Message----- From: Adam Alkins [mailto:adam@rasadam.com] Sent: Wednesday, July 10, 2002 4:28 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] PHP Security and Code Design > 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 -------------- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#20482) next »