Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how can I send parameter from ToggleButton in Android to PHP server? For example when the ToggleButton is on send value to Mysql "1" and when is off send "0" .
thank you for helping!!
Posted
Updated 22-Nov-11 21:29pm
v3

I presume on Android you run a client part. So, it's not clear what code do you run on Android. If this is just a Web browser, Android on not is not relevant here, all the HTML and JavaScript code is loaded from the server anyway. The thing is: for a standpoint of a client part, there is no such thing as a "PHP server". The server-side technology is fully transparent to the client which only sees a HTTP server. To send a request to the server, you can use either Web form or AJAX call.

—SA
 
Share this answer
 
Comments
Mohammad Ali_7 22-Nov-11 22:48pm    
I work on smart house system(controller) in Android and I want run one simulator in PC and I need to send parameter to pc to show for example the light is on or off. I need to send parameter to can show in my project. thank you for answering.
Send and Recive Parameter with Android To Mysql PHP[^]
I found the solution and share in my profile here !
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900