I'd personally suggest staying away from the $_Request global. It can make it difficult to pick up where the variables are actually coming from as it checks the URL, Sessions and the POST variables for that particular variable.
!k -----Original Message----- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Sunday, March 25, 2007 9:41 PM To: CF-Talk Subject: Re: OT - PHP Question Use $_REQUEST['rec_ID'] or $_GET['rec_ID'] / $_POST['rec_ID'] Like so $sql="SELECT * FROM personal WHERE ID = '" . $_REQUEST['rec_ID'] . "' "; Most servers or hosts like me turn of Register Globals. DOnt forget to use strip_tags() or other form of input sanitation Eric On 3/25/07, Jochem van Dieten <[EMAIL PROTECTED]> wrote: > > Pete wrote: > > Hi All just wondering if anyone knows of a similar PHP message board. > > http://nl2.php.net/support.php > > > > And the second one (which should display the result however I keep > getting > > an error message when I have $rec_ID below. It says : > > > > Sorry there is no information > > Back PHP Notice: Undefined variable: rec_ID in > > c:\Inetpub\wwwroot\personalphp\see_rec.php on line 8 > > http://nl2.php.net/manual/en/reserved.variables.php#reserved.variables.get > > Jochem > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273744 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

