Having trouble with a from on https

  • Profile Image
    ctbta
    Asked on February 10, 2013 at 12:08 PM

    My form is not displaying in IE and I believe it has something to do with my page being https. Some of the errors include:

    Internet Explorer cannot display the webpage

    Stack Overflow at line 225.

    http://www.ctbta.org/wines-of-march.php

    I have this code on the page:

    $baseURL = "www.ctbta.org";

    if ($_SERVER['HTTPS'] != "") {
        $httpProtocol = "https";
    } else {
        $httpProtocol = "http";
    }

    if (strtoupper($_SERVER['HTTPS']) != "ON") {
        ?>
        <META HTTP-EQUIV="refresh" CONTENT="0;URL=https://<?= $baseURL ?>/wines-of-march.php">
        <?
        die();
    }

    If I turn the above code off the form displays but I lose the styling on my page. Is there a trick to get the form to display if the page is https?

  • Profile Image
    jonathan
    Answered on February 10, 2013 at 06:31 PM

    Hi,

    Since your website is using https, your form should also be embedded using its secure URL.

    Please use this guide -How-can-I-receive-SSL-Submissions to be able to get the https version of the embedded form.

    The complete code should be like this:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotform.us/form/30247185086152" frameborder="0" style="width:100%; height:953px; border:none;" scrolling="no"></iframe>

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

     

    Please try this and inform us if further issue occur.

    Thanks

  • Profile Image
    kreative
    Answered on February 14, 2013 at 09:18 AM
    Thanks, it is working now.
    Keith Knowles
    CEO
    Knowles Kreative
    keith@knowleskreative.com
    www.knowleskreative.com
    p: 860.521.0206
    c: 860.478.5981
    f: 800.508.7581
    My social profiles: [image:
    Facebook] [image:
    Twitter] [image:
    LinkedIn] [image:
    Google Plus]
    IM me: [image: Google Talk] keithcknowles [image: AIM] keithck1973
    [image: Twitter] Latest tweet: Keith
    Knowles is turning 40 tomorrow! And this year I'm doing something CRAZY!
    I'm donating my birthday. That's... http://t.co/aONKM6nn
    Follow @knowleskreative Reply

    Retweet

    12:59 Feb-08