Example:
Code: Select all
//fetch array code etc.
//while loop {
echo "<option>$array['name']</option>"; //show the option list
//what I want to submit is the $array['id'] of the name they selected.
}
Thanks for your help
Lewis
Moderator: General Moderators
Code: Select all
//fetch array code etc.
//while loop {
echo "<option>$array['name']</option>"; //show the option list
//what I want to submit is the $array['id'] of the name they selected.
}
Code: Select all
echo "<option value=\"{$array['id']}\">{$array['name']}</option>";