Pass PHP variables to Light Box

  • Profile Image
    Simon Lee
    Asked on September 01, 2013 at 04:50 PM

    So I was using this code:

     

    <script src="http://www.jotform.com/min/g=feedback" type="text/javascript">
    new JotformFeedback({
    formId:'##########',
    base:'http://www.jotform.com/',
    iframeParameters: {
         'formfieldname1':'value1',
         'formfieldname2':'value2'
    },

    windowTitle:'Website error form',
    background:'#000000',
    fontColor:'#FFFFFF',
    type:1,
    height:500,
    width:620
    });
    </script>
    <a id="lightbox-#########" style="cursor:pointer;color:blue;text-decoration:underline;">Website error form</a>

     

    But I want to pass PHP variables to feilds like so:

    <?php $var= $_GET['var']; ?>

    with:

    iframeParameters: {
         'formfieldname1':'
    <?php echo $var; ?>'
    },

     

    But this is not working, any suggestions?

  • Profile Image
    jonathan
    Answered on September 01, 2013 at 05:23 PM

    Hi Simon,

    Can you please share to us the form where you are trying to do this? We will check further.

    Thanks.