PHP读取数据的问题
程序员文章站
2024-02-10 16:48:04
...
C#写的一个程序,以POST的方式将一个名为name的字符串上传到网页,网页上怎么把它读出来?
string baseuri = "http://1.liuruitao.sinaapp.com/index.php?name={0}"; //向服务器发送的uri
string uri = string.Format(baseuri,textBox1.Text); //将要发送的字符串加到uri后面
client.UploadStringCompleted+=new UploadStringCompletedEventHandler(client_UploadStringCompleted);
client.UploadStringAsync(new Uri(uri, UriKind.Absolute),"POST","");
string baseuri = "http://1.liuruitao.sinaapp.com/index.php?name={0}"; //向服务器发送的uri
string uri = string.Format(baseuri,textBox1.Text); //将要发送的字符串加到uri后面
client.UploadStringCompleted+=new UploadStringCompletedEventHandler(client_UploadStringCompleted);
client.UploadStringAsync(new Uri(uri, UriKind.Absolute),"POST","");
回复讨论(解决方案)
_POST[""]
print_r($_POST);
看看数组传递 然后根据需要读吧
你C#写的程序 post提交到 php写的web页面嘛??
echo $_POST['name'];
下一篇: destoon二次开发入门实例教程