Guest Tim London Posted June 30, 2006 Share Posted June 30, 2006 Hi Guys,If I have a web page called frogs.php and I define a function as:<?phpfunction frog() { echo "hello frogs!!";}I know that I can use <? echo frog(); ?> within the html part of the page to run the function but can I somehow bind that to a button or a link so that a user can run the function by clicking on a button or a link? Quote Link to comment https://forums.phpfreaks.com/topic/13311-functions/ Share on other sites More sharing options...
Orio Posted June 30, 2006 Share Posted June 30, 2006 Only with JS/Ajax, unless you move to a new page (because the data needs to be sent to the server with php).Orio. Quote Link to comment https://forums.phpfreaks.com/topic/13311-functions/#findComment-51306 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.