I have a webserver in Android using KSWEB application. It can support php, mysql, etc. I also have installed SL4A and python interpreter on my Android. I want to execute a python script (that runs on server side, the Android) on the click of a button.
All I have for now, is this:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<button name=test>TEST</button>
</body>
<?php
if(isset($_POST['test']))
{
exec('python test_andrei.py');
echo ('Worked!');
}
?>
</html>
Of course nothing happens when I click the button (both on server side (no script executed) and on client side (no echo output))... I am a complete noob in php and python...
Thank you for your help!