代码之家  ›  专栏  ›  技术社区  ›  Mehdi Ammar

SafariIOS当从https提交表单到http时,页面开始加载,但停止

  •  2
  • Mehdi Ammar  · 技术社区  · 7 年前

    当我尝试将表单从Https提交到http时,它显示:

    当我提交页面时,它开始加载并且永远挂起。此表单提交适用于android PC和safari mac。

    1 回复  |  直到 7 年前
        1
  •  0
  •   Funk Forty Niner    7 年前

    http:// //

    如果你说它重定向到 https http ,您只需使用 header 或其他形式的重定向。

    header("Location: http://example.com/other_page.php");
    exit; // This stops further execution
    

    或元方法:

    <meta http-equiv="refresh" content="0;url=finalpage.html">
    

    或Javascript:

    window.location.replace("http://example.com/");
    

    以上示例摘自/借用自:

    How to make a redirect in PHP?

    推荐文章