A
Anonymous
Guest
I used the array to display the check boxes.
Code:
<? include ("./verify_session1.php"); ?>
<? setcookie("username1", $username1); ?>
<html>
<head>
<SCRIPT language=JavaScript
src="check.js"></SCRIPT>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#12A9E2" text="#000000">
<div align="left">
<p><font face="Arial Narrow" size="4">Welcome, <b>
<?php
(" $HTTP_COOKIE_VARS as $username1" );
print ( "$username1" );
?></b> ! </font></p>
<p align="center"> <font color = "Blue" align=left><font color="#FFFFFF" size="4" face="Arial Narrow"><b>
This is for joining societies.</b></font></font> </p></div>
<?
$Connect = mysql_connect("localhost", "root", "");
mysql_select_db("mw");
$result = mysql_query("select * from society1 order by society");
?>
<TABLE Border=0 width=200 align="left" height="63" >
<TR>
<TD >
<center>
<FORM action = "society_confirm1.php" method ="post">
<p align="left">
<?
while ($number_of_array = mysql_fetch_array($result))
{
echo "<tr><td width='3%' style='border-style: none; border-width: medium'><input type='checkbox' name='society[]' value='$number_of_array[society]'></td><td width='18%' style='border-style: none; border-width: medium' colspan='2'><font color='#111111'>$number_of_array[society]</font></td></tr>";
}
?>
</p><div align="left"><BR>
<INPUT TYPE = "submit" VALUE = "Submit" align = middle >
<INPUT type = "reset" VALUE = "Clear" align = middle>
</div>
</FORM>
</center>
</TD>
</TR>
</TABLE>
</body>
</html>