Help with a php script

drf1229

New Member
Messages
71
Reaction score
1
Points
0
I'm trying to make a script that will execute a php function on command. How can I make it execute a php function when a user clicks a button or something? I'm very new to php and x10hosting, so any help would be useful.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
This is very basic. Actually, it involves more javascript or forms. Simply create a HTML form with a hidden field that submits to itself. Then in php code, you check if the hidden field was submited, if so, it executes the php function. You could also extend it and create some AJAX code to load another page.
 
Top