Home > Backend Development > PHP Tutorial > asp代码转php

asp代码转php

WBOY
Release: 2016-06-23 14:21:11
Original
1410 people have browsed it

asp与php asp转换 php接受转化 request.querystring

我要将asp的一个代码改成php,不知道怎么弄,望大侠能帮忙
第一个页面的一个函数是这样写的(Save是js的一个方法。主要是将js代码嵌套的asp代码改为php的)

Save(info,'detect.asp?a=scan&uid= &ip= &id= &inf='+info); 

提交过去之后 1.asp是这样写的 
uid=request.querystring("uid")
id = request.querystring("ip")
info=request.querystring("inf")
%>
这两段代码改成php的应该怎么写,望大侠给予帮助

回复讨论(解决方案)

  =$_REQUEST['uid']?>
  =$_SERVER['REMOTE_ADDR']?>
  =$_REQUEST['id']?>

你好,提交给1.asp之后,应该如何获取接受呢?也就是这个uid=request.querystring("uid")该怎么改呢

uid=request.querystring("uid")   uid=$_GET['uid'];

我知道了
谢谢

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template