I have a pull down menu that gets added to as people sign up, when a new person joins they have to choose the name of the person who "recruited" them.
As it wasn't working I simplfied the whole script and so it should, when outputted, echo the name of the person selected from the menu, instead, it just echos 2, every time, no matter what you do!
<form action="<?php echo($PHP_SELF); ?>" method=post>
<table border="0" cellspacing="0" cellborder="0">
<tr>
<td bgcolor="">Recruiting Member:
<?php
include "connect.inc";
$recruiter=mysql_query("SELECT zonename FROM roster ORDER BY zonename",$db);
?>
<select name="recruiter">
<?php
while($rows=mysql_fetch_array($recruiter)) {
?>
<option value="<?php echo $rows["zonename"]?>">
<?echo $rows["zonename"]?></option>
<?php
}
?>
</select>
</td>
</tr>
</table>
<br>
<input type="submit" name="submit" value="submit">
</form>
<?php
echo $recruiter;
?>
Thanks for any help anyone can give me.