Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在服务器 A 上有一个 HTML 表单并将其上传到服务器 B?
这可以实现吗?我正在尝试使用 iframe 和从另一台服务器上开始的表单,但我需要从服务器 A 传递给表单的信息。我必须使用 javascript 吗?
谢谢您的帮助!
只要您通过 POST 发送它并且您的远程服务器正在接受该 POST 响应,当然可以。不需要 javascript,只需将表单操作设置为远程服务器。
您可以,但服务器 b 必须接受上传。它必须在服务器端完成。使用 php 或等效的。
这是一个很棒的教程
http://www.tizag.com/phpT/fileupload.php