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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to