Passing variable to OPTION VALUE statement
Posted: Sun May 10, 2009 9:00 pm
Cansomeone help me out here?
I am trying to set up a _GET command and echo a variable in an OPTION statement in a dropdown list. What I have so far is this (line 3 is my challenge) , but it doesn't work:
Any help on this would be appreciated.
I am trying to set up a _GET command and echo a variable in an OPTION statement in a dropdown list. What I have so far is this (line 3 is my challenge) , but it doesn't work:
Code: Select all
Garment Style:
<SELECT NAME=custom10 SIZE=1>
<OPTION SELECTED="SELECTED" VALUE=<?php $item_prod_name = $_GET['item_prod_name']; echo "$item_prod_name">echo "$item_prod_name"</OPTION>?>
<OPTION VALUE="Goucho Pants w/Elastic Waist">Goucho Pants w/Elastic Waist</OPTION>
<OPTION VALUE="Goucho Pants w/Draw String">Goucho Pants w/Draw String</OPTION>
<OPTION VALUE="Poncho w/Hood">Poncho w/Hood</OPTION>
<OPTION VALUE="Poncho without Hood">Poncho without Hood</OPTION>
<OPTION VALUE="Baby Bunting">Baby Bunting</OPTION>
<OPTION VALUE="Romper">Romper</OPTION>
</SELECT><BR>