Page 1 of 1

Apache2 Python Button

Posted: Thu May 30, 2019 5:53 pm
by martinmmps
I have set up apache2 and followed the instructions on viewtopic.php?t=155229

In HTML there is the

Code: Select all

<button>
tag which allows you to create a button.

Lets say i have this python script:

Code: Select all

def function1():
	print("Button One Pressed!")
	
def function2():
	print("Button Two Pressed!")
	
How would i get 2 buttons on an Apache web server to run these functions?

Note: I am using raspbian lite (no GUI)

Re: Apache2 Python Button

Posted: Sat Jun 01, 2019 4:26 am
by ankith26
I have a method to to this, but it will not involve integrating apache and python.Standard Apache with php will do.
note:- this is not the most efficient method, but will work
viewtopic.php?f=36&t=239587
Modify it to suit your needs. If help is required, post here