0
我有一個PHP腳本,我想發送參數給它。在Android我成功地使用該代碼:發送參數到php腳本在ios
你能幫我在Obj-C中的等效代碼嗎?
nameValuePairs.add(new BasicNameValuePair("table", table));
nameValuePairs.add(new BasicNameValuePair("code", Integer.toString(code)));
nameValuePairs.add(new BasicNameValuePair("name", temp_name));
nameValuePairs.add(new BasicNameValuePair("email", email));
我知道如何從php獲取數據或調用一個http腳本,我只是不知道熱這些參數發送到php。
在PHP端我的代碼是這樣的:
$table.=$_POST['table'];
$code.=$_POST['code'];
$name.=$_POST['name'];
$email.=$_POST['email'];