Before 5.0.2, variables as numbers seemed to work.
The exact code was:
if ($delck)
{
if ($$delck == "Delete")
{
mysql_query("delete from subcategories where id='$delck'");
header("Location: $PHP_SELF");
}
}
where the form went through a loop so each checkbox would be it's ID number
<input type='checkbox' value='$srow[id]' name='delck'> <input type='submit' name='$srow[id]' value='Delete'>
User would hit checkbox and then delete to ensure they deleted the correct category/product whatever.
So essentially if you checked the first thing and hit delete, the variables would equal the following and my PHP code would work.
$delck = 1;
$1 = "Delete";
$$delck = "Delete";
Are you sure there's no setting to allow numbers as variables again? Otherwise I need to go back and recode a lot of pages.