Greetings
Yet again I am having difficulty getting a combo box to display info stored in a database and then allowing a new selection to be made from the box which is then updated.
I have been using
<select name="print">
<option value="Yes"<? if ($print == 'Yes') echo ' selected'; ?>>Yes</option>
<option value="No"<? if ($print == 'No') echo ' selected'; ?>>No</option>
</select>
Which has been working well but for scripts requiring echo statements such as
echo "<select name=\"print\">
<option value=\"Yes\"<? if ($print == 'Yes') echo ' selected'; ?>>Yes</option>
<option value=\"No\"<? if ($print == 'No') echo ' selected'; ?>>No</option>
</select>";
what I get is displayed in the box is >Yes and >No but these do not correlate to the record saved in the database.
Can I some how change things so I don't need the echo statement or is there an alternative script I can use?
Any suggestions would be appreciated.