I tried $_POST[price[f]], $_POST['price[f]'], $_POST["price[f]"], why won't any work??
*EDIT* Basically it's a form with a changing amount of multiple values.
i.e.
Code: Select all
<input type=text name=price[1]>
<input type=text name=price[2]>
<input type=text name=price[3]>
<input type=text name=price[4]>
<input type=text name=price[5]>Code: Select all
$ep=mysql_query("SELECT * from members where name='$name[user]'");
while($row = mysql_fetch_array($ep)) {
$f=$row[id];
$p=$_POST['price[$f]'];
mysql_query("UPDATE members set price=$p where id='$f'");
}Covenant