burger Posted May 26, 2008 Share Posted May 26, 2008 Hi all, My first post so I appologise if its in the wrong forum. Im after a php admin side drop down selection (yes/no) that alters a tpl file checkbox state. If the php drop down is on no the checkbox is unticked when the client enters the form page, if the php dropdown is on yes then the tpl file checkbox state is ticked. php admin dropdown: <select name="config[mailOpt]" class="textbox"> <option value="0" <?php if($config['mailOpt']==0) echo "selected='selected'"; ?>><?php echo $lang['admin_common']['no'];?></option> <option value="1" <?php if($config['mailOpt']==1) echo "selected='selected'"; ?>><?php echo $lang['admin_common']['yes'];?></option> </select> & just the standard checkbox text in the tpl !! Any ideas gratefully received, im no expert and have tried lots of different ideas but not even close. Thanks for any help given Link to comment https://forums.phpfreaks.com/topic/107343-php-drop-down-alter-javascript-checkbox/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.