我知道单线条目有一个PyGTK类,但是多行条目(比如输入项目的描述)呢?我在网上搜索过,但没有找到任何东西.
想象一下,我在Flash应用程序中有一个表单,有两个字段input1和input2.当用户完成填写此表单时,它将转到php页面.目前,我正在使用该$_GET方法发送数据.
像这样:
var request:URLRequest;
request = new URLRequest("http://site.com/page.php?data1="+input1.text+"&data2="+input2.text);
navigateToURL(request);
Run Code Online (Sandbox Code Playgroud)
并在PHP代码中:
$_GET["data1"];
$_GET["data2"];
Run Code Online (Sandbox Code Playgroud)
但这样,信息就会保留在URL中.我该怎么发送这个$_POST?
我的问题如下,
在我的一个中ViewControllers,当用户点击一个按钮时,我使用此代码注册设备以进行通知.
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
Run Code Online (Sandbox Code Playgroud)
然后,在AppDelegte,有两种方法.一个接收令牌,另一个收到错误.
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
Run Code Online (Sandbox Code Playgroud)
现在出现了问题,didRegisterForRemoteNotificationsWithDeviceToken我需要将令牌发送到我的服务器,并带有一些用户输入的数据View,如用户名.
我怎样才能获得这些数据?