I had the brilliant idea to create a form with variable names created with constants and mysql query results. for example:
<input name="twentyrate<? echo($some_id); ?>" type="text" size="4" value="<?
$test=mysql_query("SELECT 20min from minutes where cardid='$carderid' and countryid='$country_id' order by 20min desc limit 1");
while($tester=mysql_fetch_array($test)){
$testy=$tester["20min"];
echo($testy);
}
?>">
all well and good when creating the form, names the form in a constant and mysqldependant format. name="twentyrate1", name="twentyrate2", etc... however, when i submit the form to another function i had planned on using a "FOR" loop that would accept information only if "$twentyrate1" had a value. not a problem if i want to type every single possible range of "$twentyrate1-----$twentyrate999999999" but i am lazy. i am stuck at this though:
$maxcount=10;
$twentyrate1=1;
$twentyrate1=2;
for ($i = 1; $i <= ($maxcount+1); $i++) {
$temper=("$"."twentyrate".$i);
echo($temper);
echo("$"."twentyrate".$i);
}
this makes all the wonderful output i would expect: "$twentyrate1", "$twentyrate1", "$twentyrate2",
"$twentyrate2", etc... but i want to see the actual values of "$twentyrate1" and "$twentyrate2" then would like to submit that to a database(no problem once i can actually get the values) i have tried all i know to do at this point.