write python output to webpage
Posted: Tue Dec 08, 2015 4:40 pm
Hello ,
I am using apache2 on my raspberry pi 2 B.
I have html page with button.
After clicking on button i want to run python script on Rspi and grab it's output and show it on my page.
For example after activating button i want to see 30
How to do that ?Can you write me some elementary example of html, python ( or js, php ...) code ?
I am using apache2 on my raspberry pi 2 B.
I have html page with button.
After clicking on button i want to run python script on Rspi and grab it's output and show it on my page.
For example after activating button i want to see 30
Code: Select all
a=5
b=6
c=a*b
print c