How to pass a value from one page to another? As below, if I using a pull down menu and I choose ‘Subject2’. How do I pass only the ‘Subject2’ values to another page??
<? $Connect = mysql_connect("localhost","root","");
mysql_select_db("mw");
$result=mysql_query("select * from student where username1 = '$username1'");
$number_of_array = mysql_num_rows($result);
print"<TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"1\" align=center width=\"80%\">";
print " <TR><TD align=center height=\"30\"><font face=\"Arial Narrow\">Student ID</TD><TD align=center height=\"30\"><font face=\"Arial Narrow\">Programme</TD><TD align=center height=\"30\"><font face=\"Arial Narrow\">Subject</TD><TD align=center height=\"30\"><font face=\"Arial Narrow\">Action</TD></TR>\n";
while ($number_of_array = mysql_fetch_array($result))
{
echo "<tr>\n";
echo "<TD align=center rowspan=5><font face=\"Arial Narrow\"><font size=\"3\">$number_of_array[username1]</TD>\n";
echo "<TD align=center rowspan=5><font face=\"Arial Narrow\"><font size=\"3\">$number_of_array[programme]</TD>\n";
echo "<TD align=center><select name=\"subject\"><option value=subject>$number_of_array[subject1]</option><option value=subject>$number_of_array[subject2]</option><option value=subject>$number_of_array[subject3]</option><option value=subject>$number_of_array[subject4]</option><option value=subject>$number_of_array[subject5]</option></select></TD>\n";
echo "<td align=center><form name=\"main\" method=\"post\" action=\"verify_attendance.php?username1=$number_of_array[username1]&subject=$number_of_array[subject1]$number_of_array[subject2]$number_of_array[subject3]$number_of_array[subject4]$number_of_array[subject5]&programme=$number_of_array[programme]\"><input type=\"submit\" name=\"Submit\" value=\"Mark Attendance\" style=\"width:110\"></form></td>";
echo "</tr>\n";
}
?>
PLs help ... thankxx vry much! :-)