Okay. The idea behind this is the recorded record for a field appears in a selection box and if needed a new selection can be made.
This works without the echos on one script but with the echos and double quotes for another script I don't get the selection that is recorded in the record. In fact it appears as >A+
Any suggestions would be good or even an alternative would be good.
echo "<table>";
echo "<TR>";
echo "<TD>";
echo "<SELECT NAME=\"Blood\">
<option value=\"A+\"<? if ($Blood == \"A+\") echo ' selected'; ?>>A+</option>
<option value=\"A-\"<? if ($Blood == \"A-\") echo ' selected'; ?>>A-</option>
<option value=\"B+\"<? if ($Blood == \"B+\") echo ' selected'; ?>>B+</option>
<option value=\"B-\"<? if ($Blood == \"B-\") echo ' selected'; ?>>B-</option>
<option value=\"AB+\"<? if ($Blood == \"AB+\") echo ' selected'; ?>>AB+</option>
<option value=\"AB-\"<? if ($Blood == \"AB-\") echo ' selected'; ?>>AB-</option>
<option value=\"O+\"<? if ($Blood == \"O+\") echo ' selected'; ?>>O+</option>
<option value=\"O-\"<? if ($Blood == \"O-\") echo ' selected'; ?>>O-</option>
</select>";
echo "</TD>";
echo "</TR>";
echo "</table>";