Home >Backend Development >PHP Tutorial >PHP读取数据的问题

PHP读取数据的问题

WBOY
WBOYOriginal
2016-06-23 14:02:45899browse

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","");


回复讨论(解决方案)

_POST[""]

print_r($_POST);

看看数组传递 然后根据需要读吧

你C#写的程序 post提交到 php写的web页面嘛??

echo $_POST['name'];

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn