Reply to Re: PLEASE HELP ME ($20 REWARD!!) PHP(v5.0.4)/MySQL(v4.1.14) Problem. Need Basic Drop-down menu populated by 1 column from MySql

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация