How to send data from gwt TextBox to PhP server via JSON

2012-08-02 Thread Godel83
Hi, I'm trying to send login datato php script, when click on submit button. I want to send data as Post for php script, via JSON. This is my code on java file (piece of the form): final TextBox mioUsername = new TextBox(); final PasswordTextBox miaPassword = new PasswordTextBox(); Button

Re: How to send data from gwt TextBox to PhP server via JSON

2012-08-02 Thread Joseph Lust
// username and password sent from form $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; You will need to json_decode() the request before you can access the variables within. Further the incoming request JSON should be assigned to a variable (i.e. msg=JSON) so that