I am new to PHP but I need to create a button on a simple page and have its event handler. Any clue?
In the OnClick event of the button, insert JavaScript code that points to the PHP script which you want to run when the button is clicked.
<input type="button" value="Say Hi!" onclick="location='test.php'" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With