windows phone 7 - Not able to insert data into remote mySQL Database using PHP (resolved) -
i trying insert data remote mysql database using wp7 app values not inserted, php file works perfect queries getting inserted db using java(android). new c# facing challenge.
the code goes this:-
public mainpage() { initializecomponent(); textbox1.text = "http://www.abc.com/xyz/user_master.php?email=abc@xyz.com&username=abc&password=xyzz&phone=98989"; client = new webclient(); client.downloadstringcompleted += new downloadstringcompletedeventhandler(client_downloadstringcompleted); }
void client_downloadstringcompleted(object sender, downloadstringcompletedeventargs e) { if (e.error == null) { textblock2.text = e.result; } } private void button1_click(object sender, routedeventargs e) { client.downloadstringasync(new uri(textbox1.text)); }
please correct me.
the problem using "downloadstringasync" sends , post variable not filled in php, have use "uploadstringasync".
for can not tell how body has like... until have used json time. nice if post here let me know when got ;)
update
ah, slow =( please still post how message body looks like!
Comments
Post a Comment