HELP..
Given the following form;
<form name="f1" action="test.php">
<input type="checkbox" name="cb1" value="1">
<input type="checkbox" name="cb2" value="2">
<input type="checkbox" name="cb3" value="3">
</form>
In PHP $cb1, $cb2, $cb3 gives you the values of cb1,cb2, and cb3 respectively.
I want to pass the name of the checkbox variable into a function and inside the function i would like to instantiate the variable..much like the eval() function in Javascript.
foo( $var ){
...
...
}
foo("cb");
Is this possible?
tks,
art