Question on using the array to convert it to the db value. Whenever I use a hidden input it doesn't go into the shopping cart information. I don't know why, haven't been able to figure it out, (and would love to use the images as buttons again instead of the radio buttons)!
Here's what I have coded for changing the font style:
I'm using the font selection to change all text in cardTemplate instead of per line (ex. companyName)....Code:<?php $styleconvert=array('courier'=>'443','verdana'=>'444','amazone bt'=>'445','arial'=>'446','times'=>'447','helvetica'=>'448','sans-serif'=>'449'); ?> <input type="hidden" name="optn25" value="<?php $styleconvert[$_POST['FontcardTemplate']]?>"> <select name="FontcardTemplate" onchange="document.getElementById('cardTemplate').style.fontFamily=this.options[this.selectedIndex].value;"> <option value="courier">Courier</option> <option value="verdana">Verdana</option> <option value="amazone bt">Amazone BT</option> <option value="arial">Arial</option> <option value="times">Times</option> <option value="helvetica">Helvetica</option> <option value="sans-serif">Sans Serif</option> <option value="choose" selected="selected">-- Choose Style --</option> </select>
It's changing the text, but not the value from what I can see...


LinkBack URL
About LinkBacks

Reply With Quote