Hi!
I have a little script where I want a user to be able to add different recipients to a recipient-list so they can just select a particular recipient - click a submit button and be forwarded to a page where they can fill out a form for this exact recipient only (meaning that the recipient-data is already there).
So I have a drop-down list of recipients with each their unique ID called $br_ID - but for some reason I have a difficult time figuring out how to post this $br_ID in the submit button so I can be sent from booking_profile.php to booking_send.php with a number of variables attached to it (in this case I need to attach the user's variable $b_userID and the recipient's variable $br_ID)
Anyone know a solution to this? The drop-down list is coded like this:
<select name="company_select" class="form" style="width: 160px;">
<?
$query = "select * from booking_recipient where b_userID = '".$_SESSION['b_userID']."'";
$result = mysql_query($query) or die("".mysql_errno()." Error: ".mysql_error());
?>
<option value="0">------ empty recipient ------</option>
<?
while($row = mysql_fetch_array($result))
{
$br_ID = $row['br_ID'];
$br_company = $row['br_company'];
?>
<option value="<? echo $br_ID ?>"><? echo $br_company ?></option>
<?
}
?>
</select>
I just can't get neither the value 0 if an empty recipient is selected nor any other values even though $br_ID does give me an output.