Home >Backend Development >PHP Tutorial >求一段php取值代码

求一段php取值代码

WBOY
WBOYOriginal
2016-06-23 14:17:47733browse

用asp页面接收php中的js的值
应该怎么写  

既然回答了 就帮忙写清楚写好么
php中的js代码{
  怎么写


asp页面

   怎么接收


回复讨论(解决方案)

form post 传值到asp或者url 上跳转过去

可以用php的json_encode 传变量,然后asp读取这个json值

可以用php的json_encode 传变量,然后asp读取这个json值

麻烦您给写的详细点么 最好给我一些代码。要不我真不懂

form post 传值到asp或者url 上跳转过去
好人做到底。给点代码被

使用url传递

<script>var id=1;location.href='test.asp?id='+id;</script>


test.asp
Dim MyArrayMyArray=Split(Request.QueryString,"=")Response.Write(MyArray(1))

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn