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.
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.
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.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki