Hi;
I have modified the add_item and admin_item screens to allow the use of drop
down menus to select a few options such as size, condition ot item etc. I
have 6 drop downs like this all based upon the following code. This code is
from the admin_item screen. 5 of these work fine and display the correct
current value in the admin_item screen. But the 6th which is based on the
same code and the same type of database field in the same table does not
display the current value. It just displays the first item in the list.
What am I overlooking?
---------This code works------------
/* Determine if Antique */
print("<TR><TD><B>" . L_ADMINITEM_ANTIQUE . "</B></TD>\n");
print("<TD COLSPAN=\"2\"><SELECT NAME=\"inputAntique\">");
print("<OPTION VALUE=\"No\"");
if($itemAntique=="No")
{print(" SELECTED");}
print(">No");
print("<OPTION VALUE=\"Yes\"");
if($itemAntique=="Yes")
{print(" SELECTED");}
print(">Yes");
print("</SELECT></TD></TR>\n");
---- This code does not work-----------------
/* Determine if Hollow */
print("<TR><TD><B>" . L_ADMINITEM_CONDITIONHOLLOW . "</B></TD>\n");
print("<TD COLSPAN=\"2\"><SELECT NAME=\"inputConditionHollow\">");
print("<OPTION VALUE=\"Hollow\"");
if($itemConditionHollow=="Hollow")
{print(" SELECTED");}
print(">Hollow");
print("<OPTION VALUE=\"Not Hollow\"");
if($itemConditionHollow=="Not Hollow")
{print(" SELECTED");}
print(">Not Hollow");
print("</SELECT></TD></TR>\n");
HELP
Shawn
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]