Use php tags when posting php code, code tags or html tags as appropriate for other code.
Validate and fix your html
<select name = fname>
should be
<select name="fname">
<!-- or -->
<select name='fname'>
Also, there is no reason to duplicate data such as fname and lname in other tables.
CREATE TABLE person(
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
fname VARCHAR(50),
lname VARCHAR(50)
);
CREATE TABLE table_b (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY
person_id INT UNSIGNED,
FOREIGN KEY(person_id) REFERENCES person(id)
);
SELECT fname, lname
FROM table_b
INNER JOIN person ON person_id = person.id;
Would shoud first and last name for any person that has a corresponding entry in table_b. This is called database normalization
Next up, you can put whatever values you want in the option elements, and if the value and display should be the same, you don't even have to specify the value
echo '<option>'.odbc_result($rs, 'fname').' '.odbc_result($rs, 'lname').'</option>';
But since you should keep your db normalized, you do want another value than what is displayed
echo '<option value="'.odbc_result($rs, 'id').'">'.odbc_result($rs, 'fname').' '.odbc_result($rs, 'lname').'</option>';