Php 从其他网站获得回复

Php 从其他网站获得回复,php,get,Php,Get,我希望代码在另一个网站上给我表单的响应,例如,我在代码的同一页上得到响应 有一个字段叫做 “放置电子邮件以重置密码” “” 我的想法是 $url = 'http://example.com/reset.php'; &email = a@a.com; //now i want excute email in the form inside the url do $email in the form of this $url and give me the response 比如说

我希望代码在另一个网站上给我表单的响应,例如,我在代码的同一页上得到响应

有一个字段叫做 “放置电子邮件以重置密码” “”

我的想法是

$url = 'http://example.com/reset.php';
&email = a@a.com;

//now i want excute email in the form inside the url 

do $email in the form of this $url and give me the response
比如说

你的电子邮件不存在

当然,我不想去上面的网站,我只想知道当我发送电子邮件时,表格的回复是什么

我希望你明白我的意思 我为我的英语感到抱歉。

jQuery(“#提交”)。单击(函数(){
var email=jQuery('#email').val();
jQuery.post('http://example.com/reset.php“,{email:email}).done(函数(结果){
jQuery('#result').text(result.status);
});
});

提交

您正在寻找的工具名为
cURL
:我如何使用它?我试着去理解它,但我不知道“我不能理解”不是一个真正可以回答的问题。你试过什么?从简单的例子开始(快速的谷歌搜索会发现很多),然后从那里开始。