Re: Form Variables not getting passed || Apache, MySql, Win 2k Setup

From: Date: Wed, 29 Jan 2003 23:35:43 +0000
Subject: Re: Form Variables not getting passed || Apache, MySql, Win 2k Setup
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-133571@lists.php.net to get a copy of this message
why would it matter if he does it just above the place that he is going to use them? doesn't matter if he is in a function or not. the $_REQUEST var will always be available. if he calls a function then he would have to do it just inside the function or pass it to the function. Jim ----- Original Message ----- From: "Jason Wong" <php-general@gremlins.biz> To: <php-general@lists.php.net> Sent: Wednesday, January 29, 2003 2:59 PM Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup > On Thursday 30 January 2003 09:55, Noah wrote: > > I don't want to use $_REQUEST['my_passed_variable'] at all. > > > > Right now when I do an sql insert on my local machine I have to use the > > following syntax: > > > > INSERT into tablename (field name list) > > VALUES ($_REQUEST['var1'], $_REQUEST['var2'], > > $_REQUEST['var3']) > > > > I just want to use $var1, $var2, $var3 > > Are you trying to use these inside a function? If so, look up variable scope > in the manual. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Most people have a mind that's open by appointment only. > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#133571) next »