I am setting up an 'email the user their login information if it wasn't done before' script.
The results are a bit odd. I get the name down the left side of the screen as if it were in the option field, but it's not actually there. The results of this will go to the email script page and send the info.
<form method="post" action="email_user.php">
<?php
include('config.php');
$table_name ="users";
$sql=mysql_query("SELECT contactid, firstname, lastname FROM $table_name");
echo'<select name="ContactID">\n';
while ($row=mysql_fetch_assoc($sql))
{
$contactid= $row['contactid'];
$firstname=$row['firstname'];
$lastname=$row['lastname'];
echo "<option value= '$contactid' >";
echo "'$firstname$lastname' \n";
echo '</select>\n';
}
?>
</form>
Somewhere along the way the id got lost.
Thanks!