View Single Post
  #1  
Old 04-01-2008, 09:32 AM
 
PrairielandGolfCars PrairielandGolfCars is offline
 

Newbie
  
Join Date: Mar 2008
Posts: 4
 

Default Change Text field to drop down in Product_details.tpl?

We have the Brand/Year/Model modification installed and would like to pre-populate a drop down for onf of the new fields it created, "type".

We currently have this in the code:
PHP Code:
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[type]"></TD>{/if}
  <
td class="FormButton" nowrap>{$lng.lbl_type}</td>
  <
td class="ProductDetails"
    <
input type="text" name="type" size="45" value="{ $product.type}"

How would we change it to a <SELECT statement?

It list doesn't have to be database driven, we only have three types, (Gas, Electric, Common)

I know how to do a regular HTML form <Select ... statement, but I'm not sure how/where to code the database name and field to insert the data selected?
__________________
4.1.9 GOLD
Reply With Quote