gpt4 book ai didi

php - 您是否需要包含完整的 https 文件名才能在 html/php 表单上使用 SSL?

转载 作者:太空宇宙 更新时间:2023-11-03 13:44:48 24 4
gpt4 key购买 nike

<form action="purchase.php" method="post">是我在付款表格上使用的代码。我需要包括整个 https://domainname.com 吗?为了在我的表单中使用 ssl?

最佳答案

如果您从 http://domainname.com 开始,您的表单将提交到 http://domainname.com/purchase.php

如果您从 https://domainname.com 开始,您的表单将提交到 https://domainname.com/purchase.php

因此,客户端浏览器需要使用表单所在页面的 https:// 协议(protocol)才能使用 https。 (即,相对路径使用页面的 http(s) 协议(protocol))。

关于php - 您是否需要包含完整的 https 文件名才能在 html/php 表单上使用 SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5029311/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com