Hi guys,
There are three variables being POSTED by my form: id_a, id_b and id_c
I only want to insert in the database one of this variables so I'm dynamically setting it with $idtypevar
My question is: how can I display the value of the variable name set by $idtypevar?
Thanks.
$idtypevar = 'id_' . $_POST['tipo'];
echo $_POST[$$idtypevar];
This does not work.