Hi I have tried several various ways of getting this to work and the, script to show it uses the "foreach" array but will not work ! its the $array[array] thats causing the problem. The data entered in the form can be any interger value. and the table/ form is variable depending on the number of members in the database. Thanks JD [code] $list = "<table border =\"1\"><tr><th>Forename</th>"; $list.= "<th>Surname</th>"; $list.= "<th>Handicap</th>"; $list.= "<th>Edit</th>"; $list.= "<th>Points</th></tr>"; $form ="<form action=\"show.php\" "; $form.= "method =\"get\">"; while ($row= mysql_fetch_array($rs) ) { $array = array('point'==$value); $Mem = $row["Mem_Id"]; $list.= "<tr>"; $list.= "$test1"; $list.= "<td>".$row["Forename"]."</td>"; $list.= "<td>".$row["Surname"]."</td>"; $list.= "<td>".$row["Hcap"]."</td>"; $list.= "<td> <input type=\"text\" name=\"Mem\" value=\"$Mem\"> </td>"; $list.= "<td> <input type=\"text\" name=\"array\" value=\"$array[array]\"> </td>"; } $list.= "</table>"; echo ($list); $form.= "<input type=\"submit\" value=\"Submit\">"; $form.= "</form>"; echo($form); ?>[/code]