echo get_option and script
-
Hi,
I’m creating a new theme and want to pass the aweber code to the home page by using an option panel where the user can paste the javascript code into a text box and this text will be echo where required.The code entered by the user in the text box (called mt_optin)will be
<script type="text/javascript" src="http://forms.aweber.com/form/33/XXXXXXXXX.js"></script>To echo it I use
<div id="optinbox"> <?php echo get_option('mt_optin'); ?> </div>But the aweber opt in box in not showed. I guess it is because the echoed text includes a backslash after type= and src=
<script type=\”text/javascript\” src=\”http://forms.aweber.com/form/33/420341433.js\”></script>
Anyone can help me?
Thanks in advance
The topic ‘echo get_option and script’ is closed to new replies.