OK, so I have a variable number of POST variables coming into a form handler from another script. These names are a subset of, say, var1, var2, ..var1238.
I know which subset I will have, so I know what numbers will be on the end, and I loop through the possible values, setting $varname = 'var'.$index, and then I can access the value of that POST variable by $$varname.
But pretend for a second I have a function that expects a reference to a variable (normally &$varname), and I need to pass each of these variables as arguments to this function.
How please?
Many TIA!!! Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com
I know which subset I will have, so I know what numbers will be on the end, and I loop through the possible values, setting $varname = 'var'.$index, and then I can access the value of that POST variable by $$varname.
But pretend for a second I have a function that expects a reference to a variable (normally &$varname), and I need to pass each of these variables as arguments to this function.
How please?
Many TIA!!! Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com