qmqmqm Posted February 14, 2009 Share Posted February 14, 2009 Hi Is there a way to make a button on an HTML page such that it invokes a function written in PHP, such as echoing something on the html page? The only way to do this that I know of is to have the button in a form, and pass variable to a new page using HTTP POST. Is there a way to do this without loading a new page? Thanks a lot. Tom Link to comment https://forums.phpfreaks.com/topic/145236-php-function-for-button/ Share on other sites More sharing options...
premiso Posted February 14, 2009 Share Posted February 14, 2009 Javascript/AJAX is what you want to look into. Link to comment https://forums.phpfreaks.com/topic/145236-php-function-for-button/#findComment-762403 Share on other sites More sharing options...
qmqmqm Posted April 26, 2009 Author Share Posted April 26, 2009 Javascript/AJAX is what you want to look into. Sorry for the late reply premiso, but your answer is very helpful! Tom Link to comment https://forums.phpfreaks.com/topic/145236-php-function-for-button/#findComment-819836 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.