Hi guys/gals,
I am trying to do the following without any success.
I have a form which is generated by values from a db. It pulls first name, last name, time, date, personnel. Well that form looks great. The personnel field is the only populated drop down with all personnel that you can select to handle the situation.
The problem is when I submit the form, I cannot get the data to all print out on the next page. I use this on the form.
<TABLE WIDTH='100%' BORDER='0' CELLSPACING='5' CELLPADDING='0'>
<TR>
<TD WIDTH='25%'>$a $b</TD>
<TD WIDTH='45%'>$date @ $start - $end</TD>
<TD WIDTH='30%'><SELECT NAME='repo'>
<OPTION VALUE='$repo' SELECTED>$repo_name
<OPTION VALUE='name1'>me
<OPTION VALUE='name2'>you
</SELECT></TD>
</TR>
</TABLE><BR>
<INPUT TYPE='hidden' name='a' value='$a'>
<INPUT TYPE='hidden' name='b' value='$b'>
<INPUT TYPE='hidden' name='date' value='$date'>
<INPUT TYPE='hidden' name='start' value='$start'>
<INPUT TYPE='hidden' name='end' value='$end'>
<INPUT TYPE='hidden' name='id[]' value='$id'>
then the next page....
foreach ($a AS $a1) {
echo "<TABLE WIDTH='100%' BORDER='0' CELLSPACING='5' CELLPADDING='0'>
<TR>
<TD WIDTH='25%'>$a $b</TD>
<TD WIDTH='45%'>$date @ $start - $end</TD>
<TD WIDTH='30%'>$repo</TD>
</TR>
</TABLE><BR>";
}
well, this prints out the correct amount of results, except only the $id value is the only variable that is listed as individual results.
How do I get all variables from the form to print out individually on the next page? Thanks and I hope I explained my ignorance well.