Dear Batara, There are global variables that serve this purpose. You must have register_globals turned on:
http://www.php.net/manual/en/language.variables.predefined.php $_POST An associative array of variables passed to the current script via the HTTP POST method. Automatically global in any scope. Introduced in PHP 4.1.0. I believe that you can also use getenv() if the register_globals is not on. Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Monday, February 25, 2002, at 09:48 AM, Batara Kesuma wrote: > Hi all, > > I have a page that post a lot of variables to the next page. It looks > like: > > <form action=next_page.php> > <input type=text name=f_text1> > <input type=text name=f_text2> > > <select name=f_multiple1[] multiple size=6> > <option value=1>one > <option value=2>two > <option value=3>three > </select> > > <input type=submit> > </form> > > On next.php I can access all the values through: $f_text1, $f_text2, and > an array $f_multiple1. My question is, how can I pack all of these > variables from previous page _without_knowing_ the variables name? I > mean, > I know I can write: > > $array = array("text1" => $f_text1, "text2" => $f_text2, "multiple1" => > array($multiple1)); > > But that is not what I want, it is more like: > GetAllFromPrevious(); > > or in Perl: > %params = $q->Vars; > > And poof, all the values from previous will be inserted into an array. > > Thanks, > --bk > > -- > 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