ASP code to PHP solution

Source: Internet
Author: User
Tags servervariables
ASP code to PHP
I want to change an ASP code to PHP, do not know how to do, hope that the warrior can help
A function of the first page is written like this (save is a method of JS.) The main is to change the JS code nested ASP code to PHP)

Save (info, ' detect.asp?a=scan&uid= <%=request ("UID")%>&ip= <%=request.servervariables ("REMOTE_ADDR")%>&id= <%=request ("id")%>&inf= ' +info);

1.asp was written after the submission of the past.
<%
Uid=request.querystring ("UID")
id = request.querystring ("IP")
Info=request.querystring ("INF")
%>
These two pieces of code to PHP should be how to write, hope that the hero to give help ASP and PHP ASP Conversion PHP accepts conversions Request.QueryString

Share to:


------Solution--------------------
<%=request ("UID")%>
<%=request.servervariables ("REMOTE_ADDR")%>
<%=request ("id")%>
------Solution--------------------
Uid=request.querystring ("UID") uid=$_get[' uid '];
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.