0

How to use event on PHP?

well... I'm developing a website and I want to add event on a button... if the button clicked.. then it's should do something to the Databases..... I know that event is only on client side (JavaScript) but SQL connection in on server side (PHP) can anyone explain how to do it?

10th Jan 2017, 11:51 PM
Ananda Risyad
Ananda Risyad - avatar
2 Respostas
+ 6
Make that button <input type=submit>
11th Jan 2017, 1:08 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
0
List of events here: https://code.sololearn.com/Wp54T5wuudpZ/#html Quick inline: use html5, <button onclick="runFunction();">Button Text</button>
11th Jan 2017, 2:49 AM
Louis Milotte
Louis Milotte - avatar