I don't know what else to title this message with, hence the subject.

    I have a script that defines a few variables like this:

    $var_list1 = Array(...);
    $var_list2 = Array(...);
    $var_list3 = Array(...);
    etc.

    Further down the script I have this piece:

    while (list($key,$value) = each($var_list)) {   // which $var_list?
      if ($$value == '') {
        $url .= "&".$value."=";
        $error = 1;
      } else {
        $url .= "&".$value."=". urlencode(stripslashes($$value)) ."";
      }
    }


    That same script also gets a value ($step) from another one.  Now I need to
figure out which $var_list# to use based on this $step value.  Any suggestion
on how to do this?



--
W | I haven't lost my mind; it's backed up on tape somewhere.
  +--------------------------------------------------------------------
  Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.




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

Reply via email to