Asp code to php solution

Source: Internet
Author: User
Tags servervariables
To convert asp code to php, I want to change an asp code to php, hope Daxia can help write a function on the first page in this way (Save is a js method. It is mainly to change the asp code nested in js code to php) Save (info, detect. asp? Ascan & amp; uuid) % & gt; & amp; ip & lt; % request. asp code to php
I want to change an asp code to php. I don't know how to do it. hope you can help me.
A function on the first page is written in this way (Save is a js method. It is mainly to change asp code nested in js code to php code)

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

1. asp is written like this after submission
<%
Uid = request. querystring ("uid ")
Id = request. querystring ("ip ")
Info = request. querystring ("inf ")
%>
How can I write these two codes into php? hope you can help me.

Asp and php asp conversion php accept conversion request. querystring

Share:


------ 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.