Posted by bigfella on 10/08/05 20:25
Hello Folks,
I am using the following code to produce a dynamic form.
$result = mysql_query("SELECT id,weight,date FROM weekly_data WHERE
weight IS NULL AND subscr_id = '$toss' AND date <= now()");
if (!$result) {
die('Invalid query: ' . mysql_error());
}
print"<table width='100%' id='catchup' border='0' cellspacing='0'
cellpadding='0'>";
print "<form name='form1' id='form1' method='post'
action='catchupprocess.php'>";
print"<tr>";
print"<td></td>";
print"<td>Weight</td>";
print"<td>Date</td>";
print"<td>Waist</td>";
print"<td>Measure</td>";
print"<td></td>";
print"</tr>";
while ($row = mysql_fetch_array ($result)){
//echo $result;
print"<tr>";
print"<td>";
print"<input name='".$row['id']."' size='4' type='text'
value='".$row['id']."'/>";
print"</td><td>";
print"<input type='text' size='6' name='weight".$row['id']."'
value=''/>";
print"</td><td>";
print"<input type='text' size='10' value='".$row['date']."'/>";
print"</td><td>";
print"<input type='text' size='3' name='waist".$row['id']."'
value=''/>";
print"</td><td>";
print"<input type='text' size='6' value='$measure'/>";
print"</td><td>";
print"<input type='hidden' size='10' value=''/>";
print"</td>";
print"</tr>";
}
print"<tr>";
print"<td> </td>";
print"<td><input name='Reset' type='reset' value='Reset'></td>";
print"<td> </td>";
print"<td><input name='submitcatchup' type='submit'
value='Submit'></td>";
print"<td> </td>";
print"</tr>";
print"</form>";
print"</table>";
?>
But I am sbsolutely stumped as to how to get the information out of the
form. Any pointers would be greatfully received.
Darren
[Back to original message]
|