HTTPS页面上的HTTP表单

时间:2017-10-17 21:43:46

标签: php html http https

我的网站页脚上始终有一个mailchimp订阅表单。这包括结账时的HTTPS页面。

我想使用HTTPS链接到表单,但是当我这样做时,链接不起作用。但如果我没有链接https,那么我将在结帐时显示一个不安全的页面:

<div id="mc_embed_signup">
<form action="https://compant.us2.list-manage1.com/subscribe/post?u=5513172da1aaasda4fdedba&amp;id=1234" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank">
    <label for="mce-EMAIL"><?php echo MENU_SIGN_UP_FOR_THE_LATEST_ANZIE_NEWS; ?></label>
    <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="<?php echo MENU_EMAIL_ADDRESS; ?>" required>
    <input type="submit" value="<?php echo MENU_SUBSCRIBE; ?>" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>

1 个答案:

答案 0 :(得分:0)

请尝试以下格式:

<form action="https://ostraining.us1.list-manage.com/subscribe/post?u=c4fe34ed80790dd773846d4e1&amp;id=e030bfa9b8

取自https://www.ostraining.com/blog/coding/mailchimp-forms-ssl/