Hi,
I need to be able to select a certain user from a drop down menu and then send some data for that user for example choose a user from a menu and fill out a comment box then send it back to the database so that user can see the comment after they log in.
I have the code already to show the users emails in my php drop down menu
[php]
<?php $sql = "SELECT * FROM users WHERE staff_mem = '".$_SESSION['email']."'"; $result = mysql_query($sql); echo "<select name = 'name'"; while($row = mysql_fetch_array($result)){ echo "" . $row['email'] . ""; } echo ""; ?>[/php]
I’m guessing that the selected email will need to be assigned to a variable then the comment sent to that variable.
Could anyone lend some advice please?
thanks in advance.