I stored one variable name “campname1” with value “Hosting Campaign”. Now when I press submit button then I wish to access this value but not with simple $_GET[‘campname1’]. Here is scenario.
“campname” is constant and 1 added at the end is increasing according to number of rows in table. For example.
$sno = 1;
$varname = “campname”.$sno;
Now $varname has value “campname1” and I wish to access “campname1” data by $_GET command
What’s the exact command?
$varvalue = $_GET[$varname] or
$varvalue = $_GET[$$varname]
How to retrieve this variable data?