Hello people.
Does anybody know how to convert a variable to a string (as in the variable itself, not it's value)?
I have several <image type="submit"> buttons on a page, all resuling from a while loop.
they look like this:
echo '<input name=button'.$xid.'>';
The value which I can retrieve on submission looks like this:
$button79_x
I need to retrieve the number (in this case 79) from the variable. It is the variable $xid.
The way I see it I need to convert the variable name itself to a string and then fetch the number out. I have, however, no idea how to do this.
Any ideas?
thanks,
feisty.