Php gets parameters in get mode. how can I return values after processing?

Source: Internet
Author: User
Php has obtained the parameter in get mode. after processing, how can I return the value of a. php to receive a parameter from another address (B. aspx) (get mode)
A. php returns a 0 page after processing, for example, a. php? 0
B. aspx can receive the returned 0 through getresponse

How can I return 0 to myself in a. php?


Reply to discussion (solution)

What is a return of 0 to its own page?

$ Id = $ _ GET ['id'];
Echo $ id;

Output to this page or add it to the url?

For example, my page is a. php.
B. aspx uses get to upload a parameter.
After receiving and processing, a. php adds a parameter 0: a. php? 0
B. aspx uses getResponese to get the returned 0

I just want to know how to return such a 0 in B. php

B. aspx sends a get request parameter to a. php using the following statement, and obtains the return value of a. php.
HttpRes = HttpWebRequest. Create (new Uri (a. php + strUrlParameter). GetResponse ();

How can I return values in a. php?

Probably ajax, right? I wonder if it is the same thing as what you said.

Probably ajax, right? I wonder if it is the same thing as what you said.
It has nothing to do with ajax.

I don't know much about it.

B. aspx sends a get request parameter to a. php using the following statement, and obtains the return value of a. php.
HttpRes = HttpWebRequest. Create (new Uri (a. php + strUrlParameter). GetResponse ();

How can I return values in a. php?
A. php echo return value.

A. php echo return value.

Is returned to B. aspx

Ajax technology can be implemented directly in. if a value is returned in php, echo "value to be returned" can be directly used. This means that echo in page a does not output information to the browser, but returns B, B can get the returned value.

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.