+ 1

I need help. So how to make any sql requete with diferents buton submit on one form .

php sql on form

1st Mar 2017, 10:53 AM
ism08
ism08 - avatar
3 Antworten
+ 2
use javascript to target the button onclick event and call php code with sql query.
2nd Mar 2017, 5:55 AM
Andre van Rensburg
Andre van Rensburg - avatar
0
if(isset($_POST['btn1'])) { // code }else if (isset($_POST['btn2'])) { // code }
2nd Mar 2017, 8:35 AM
Dev
Dev - avatar
0
tkt my dear
19th Mar 2017, 11:44 PM
ism08
ism08 - avatar