Hi guys,
I have written python script that blink LED. I want to make web page in HTML, contain button so when button will click on web page.Python script will be run on web server.
Here is html page
Web browser display following page
I want to embed python script in HTML web page. I think have to do some change on html file. I was searching on google and I found some example
Where to add <href= "link location"> in my HTML Code. How to make complete HTML page that will run python script on browser ?
The python script is located in:
/home/pi/Documents/LED/led.py
Note : I am not talking only python script. I am looking way for any script like php,java or python. here I am just taking example of python script
I have written python script that blink LED. I want to make web page in HTML, contain button so when button will click on web page.Python script will be run on web server.
Here is html page
HTML:
<html>
<body>
<title>Raspberry PI</title>
<h1>LED</h1>
<form>
<input type="Button" value="Blink LED">
</form>
</body>
</html>
I want to embed python script in HTML web page. I think have to do some change on html file. I was searching on google and I found some example
Code:
<a href="/home/pi/Documents/LED/led.py">.
<link rel="/home/pi/Documents/LED/led.py">
The python script is located in:
/home/pi/Documents/LED/led.py
Note : I am not talking only python script. I am looking way for any script like php,java or python. here I am just taking example of python script
Last edited: