I'm trying to get this to work and echo out something like:
$person[0]
$person[1]
$person[2]
With this code:
if($cmd !="post"){
echo("
<tr>
<td width='15%'><font size='1' face='Arial, Helvetica, sans-serif'>How many people?</font></td>
<td width='85%'><select name='numbers'>
<option value>1</option>
<option value>2</option>
<option value>3</option>
<option value>4</option>
<option value>5</option>
<option value>6</option>
</select></td>
</tr>
");
}
if($cmd == '$post'){
echo("
<table width='96%' border='0' cellspacing='0' cellpadding='3'>
");
while ($numbers > 0) {
echo("
<tr>
<td width='15%'><font size='1' face='Arial, Helvetica, sans-serif'>People Involved</font></td>
<td width='85%'><select name='personnel'>
<option value>1</option>
<option value>2</option>
<option value>3</option>
<option value>4</option>
<option value>5</option>
<option value>6</option>
</select></td>
</tr>
</table>
");
$num--;
}
exit;
}
Then once I submit the later form, it will echo out all the personnel in a list for adding to a database.