I always thought that I could use the data from other websites with ajax. this is also a side of my thoughts over the past few days. but after using firefox for testing, I can't do it now, using load post in jquery and so on cannot get the desired result! So suddenly ----- I thought about things in the past few days, so now I have.
If you want to submit data to the specified page in php, there should be and return values.
So I found this function, but I didn't try it. I don't know if the space can be used.
It's from the village!
The code is as follows:
/*-----------------------------------------------------------
* Function: use PHP socke to submit data to a specified page.
*
* Author: Honghe. c
*
* Description: post ($ url, $ data)
*
* $ Url = 'http: // www.bitsCN.com ';
* $ Data [user] = 'Hong ';
* $ Data [pass] = 'xowld ';
* Echo post ($ url, $ data );
*-----------------------------------------------------------*/
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