简体   繁体   English

使用javascript保存URL内容并将其作为变量传递给PHP

[英]Saving URL content with javascript and pass it to PHP as variable

I want to save the url content of some website with javascript (from a client side) and pass it over as a variable to my php file, it's ok that the javascript will be in the php file. 我想使用javascript(从客户端)保存某些网站的url内容,并将其作为变量传递给我的php文件,可以确定javascript将在php文件中。

is there a way to do so? 有办法吗?

从javascript到php,您必须使用表单提交,更改包含查询参数的url或ajax

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM