I've defined the variable:
function sdf ($quant, $id){
global $$name;
....
$name = "quantity" . $id;
$$name = $quant;
session_register("$name");
....
}
For instance:
I need to pass the value $quant to the variable $quantity1, then I need a double variable.
I have to write session_register("$name");
to make it works. But the function not take $$name like global.
Do you understand this mess?