|  | Posted by NC on 01/26/06 23:01 
snowsong1 wrote:>
 > The only problem i have is that I need a password blank below
 > it to submit passwords,
 
 OK, right now you have:
 
 > // Printing results in HTML
 > echo "<form action='#' method='post'>\r\n<select name=house>\r\n";
 > while ($line = mysql_fetch_array($result, MYSQL_NUM)) {
 >   $house = $line[0];
 >   echo "<option value=$house>$house\r\n";
 > }
 > echo "</select>\r\n <input type=submit value=Send>\r\n</form>\r\n";
 
 Replace it with this:
 
 // Printing results in HTML
 echo "<form action='gk_login.php' method='post'>\r\n",
 "Greek House Name: <select name=house>\r\n";
 while ($line = mysql_fetch_array($result, MYSQL_NUM)) {
 $house = $line[0];
 echo "<option value=$house>$house\r\n";
 }
 echo "</select><br>\r\nGreek Password: ",
 "<input type='password' name='greek_password'> size=20
 maxlength=20\r\n ",
 "<input type='hidden' name='submitted' value='TRUE'>\r\n",
 "<input type='submit' value='Login'>\r\n</form>\r\n";
 
 That should do it...
 
 Cheers,
 NC
 [Back to original message] |