PDA

View Full Version : help with external select boxes



howardfan123
Jan 24th, 2009, 03:17 PM
Somebody please help, i am trying to take a select box and make it an external file. i have about 40 of these through out my site and want to be able to just update one instread of haveing to rewrite all of them.

<select name="scentlistfull">
<option value= "&lt;em&gt;ANGEL WHISPER&lt;/em&gt;"selected="selected">ANGEL WHISPER</option>
<option value= "&lt;em&gt;ANGEL WINGS&lt;/em&gt;">ANGEL WINGS</option>
<option value= "&lt;em&gt;APPLE&lt;/em&gt;">APPLE</option>
<option value= "&lt;em&gt;BABY MAGIC&lt;/em&gt;">BABY MAGIC</option>
<option value= "&lt;em&gt;BABY POWDER&lt;/em&gt;">BABY POWDER</option>
<option value= "&lt;em&gt;BLACK CHERRY&lt;/em&gt;">BLACK CHERRY</option>
<option value= "&lt;em&gt;BLUEBERRY MUFFIN&lt;/em&gt;">BLUEBERRY MUFFIN</option>
<option value= "&lt;em&gt;CHRISTMAS ESSENCES&lt;/em&gt;">CHRISTMAS ESSENCES</option>
<option value= "&lt;em&gt;CHRISTMAS TREE&lt;/em&gt;">CHRISTMAS TREE</option>
<option value= "&lt;em&gt;CINNAMON APPLE BERRY&lt;/em&gt;">CINNAMON APPLE BERRY</option>
<option value= "&lt;em&gt;CINNAMON BUN&lt;/em&gt;">CINNAMON BUN</option>
<option value= "&lt;em&gt;CINNAMON SPICE&lt;/em&gt;">CINNAMON SPICE</option>
<option value= "&lt;em&gt;CITRONELLA&lt;/em&gt;">CITRONELLA</option>
<option value= "&lt;em&gt;CLEAN COTTON&lt;/em&gt;">CLEAN COTTON</option>
<option value= "&lt;em&gt;COOL WATER&lt;/em&gt;">COOL WATER</option>
<option value= "&lt;em&gt;COTTAGE BREEZE&lt;/em&gt;">COTTAGE BREEZE</option>
<option value= "&lt;em&gt;CUCUMBER CANTALOP&lt;/em&gt;">CUCUMBER CANTALOP</option>
<option value= "&lt;em&gt;CUCUMBER MELON&lt;/em&gt;">CUCUMBER MELON</option>
<option value= "&lt;em&gt;DAFFIDAL&lt;/em&gt;">DAFFIDIL</option>
<option value= "&lt;em&gt;DRAAKRA TYPE&lt;/em&gt;">DRAAKRA TYPE</option>
<option value= "&lt;em&gt;FANTASY&lt;/em&gt;">FANTASY</option>
<option value= "&lt;em&gt;FREESIA&lt;/em&gt;">FREESIA</option>
<option value= "&lt;em&gt;GRAVITY&lt;/em&gt;">GRAVITY</option>
<option value= "&lt;em&gt;HARVEST SPICE&lt;/em&gt;">HARVEST SPICE</option>
<option value= "&lt;em&gt;HAWAIIAN PARADISE&lt;/em&gt;">HAWAIIAN PARADISE</option>
<option value= "&lt;em&gt;HOME FOR THE HOLIDAYS&lt;/em&gt;">HOME FOR THE HOLIDAYS</option>
<option value= "&lt;em&gt;HOME SWEET HOME&lt;/em&gt;">HOME SWEET HOME</option>
<option value= "&lt;em&gt;HONEY DEW&lt;/em&gt;">HONEY DEW</option>
<option value= "&lt;em&gt;HONEYSUCKLE&lt;/em&gt;">HONEYSUCKLE</option>
<option value= "&lt;em&gt;HONEY FLOWER&lt;/em&gt;">HONEY FLOWER</option>
<option value= "&lt;em&gt;IRISH CREAM&lt;/em&gt;">IRISH CREAM</option>
<option value= "&lt;em&gt;JADE&lt;/em&gt;">JADE</option>
<option value= "&lt;em&gt;JASMINE&lt;/em&gt;">JASMINE</option>
<option value= "&lt;em&gt;JELLY BEAN&lt;/em&gt;">JELLY BEAN</option>
<option value= "&lt;em&gt;JUNIPER BREEZE&lt;/em&gt;">JUNIPER BREEZE</option>
<option value= "&lt;em&gt;LAVENDER&lt;/em&gt;">LAVENDER</option>
<option value= "&lt;em&gt;LILAC&lt;/em&gt;">LILAC</option>
<option value= "&lt;em&gt;LOVESPELL&lt;/em&gt;">LOVESPELL</option>
<option value= "&lt;em&gt;LUCK OF THE IRISH&lt;/em&gt;">LUCK OF THE IRISH</option>
<option value= "&lt;em&gt;PUMPKIN MOOSE&lt;/em&gt;">PUMPKIN MOOSE</option>
<option value= "&lt;em&gt;PUMPKIN PIE&lt;/em&gt;">PUMPKIN PIE</option>
<option value= "&lt;em&gt;PURE SUDUCTION&lt;/em&gt;">PURE SEDUCTION</option>
<option value= "&lt;em&gt;SUMMER EVENINGS&lt;/em&gt;">SUMMER EVENINGS</option>
<option value= "&lt;em&gt;RAINFALL&lt;/em&gt;">RAINFALL</option>
<option value= "&lt;em&gt;ROSE&lt;/em&gt;">ROSE</option>
<option value= "&lt;em&gt;SEA BREEZE&lt;/em&gt;">SEA BREEZE</option>
<option value= "&lt;em&gt;SOUTHERN PEACH&lt;/em&gt;">SOUTHERN PEACH</option>
<option value= "&lt;em&gt;SPARKLING SNOWFLAKES&lt;/em&gt;">SPAEKLING SNOWFLAKES</option>
<option value= "&lt;em&gt;SPICED PEAR&lt;/em&gt;">SPICED PEAR</option>
<option value= "&lt;em&gt;SPRING RAIN&lt;/em&gt;">SPRING RAIN</option>
<option value= "&lt;em&gt;STRAWBERRY&lt;/em&gt;">STRAWBERRY</option>
<option value= "&lt;em&gt;SUGER COOKIE&lt;/em&gt;">SUGER COOKIE</option>
<option value= "&lt;em&gt;VANILLA&lt;/em&gt;">VANILLA</option>
<option value= "&lt;em&gt;VERY WOMAN&lt;/em&gt;">VERY WOMAN</option>
<option value= "&lt;em&gt;WATERMELON&lt;/em&gt;">WATERMELON</option>
<option value= "&lt;em&gt;WEDDING DAY&lt;/em&gt;">WEDDING DAY</option>
<option value= "&lt;em&gt;WHITE DIAMOND&lt;/em&gt;">WHITE DIAMOND</option>
<option value= "&lt;em&gt;WHITE LINEN&lt;/em&gt;">WHITE LINEN</option>
<option value= "&lt;em&gt;WINTER WONDERLAND&lt;/em&gt;">WINTER WONDERLAND</option>
</select>


now i have tried to write a javascript to do this with no luck and also tried ssi,object insert,php,

totally confused and lost now?

bazz
Jan 24th, 2009, 03:45 PM
you got a database - either flat files or MySQL?

if you have a db then you could use php/perl to build a sciprt which could do as you need. basically, you send it some values (parameters), and based on those it decides what to put into your 'select'.

the you could build you page around that script or possibly, insert that perl script by ssi.

bazz