Hi,  I need a little bit of help.
My variable $team in the option block is always set to the last variable
that is read....I would like it to contain the option that the user
clicks.....Please help me!

My Select works properly


$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");

while ($row = mysql_fetch_array($result)) {
$uid = $row['uid']
$team = $row['team'];

        $option_block .= "<option value=\"$uid\">$team</option>";

$display_block = "

<FORM METHOD=\"post\" ACTION=\"show_makeapick.php\">

<select name=\"uid\">

<INPUT TYPE=\"SUBMIT\" NAME=\"submit\" VALUE=\"Select this Team\"></P>



<TITLE>User Management: Modify a User</TITLE>
<h1>User Management</h1>
<h2><em>Modify a User</em></h2>
<P>Select a contact from the list below, to modify the user's record.</p>

<? echo "$display_block"; ?>

<p><a href="contact_menu3.php">Return to Main Menu</a></p>


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to