MortimerJazz Posted January 16, 2007 Share Posted January 16, 2007 I know this might be a silly question, but I was wanting to know if there's any way to fire a particular PHP function when a user clicks on a certain image or link.At the moment I'm having to refresh the page, passing the script a certain variable called "action" or something similar.Is this the only way to go about this?Thanks, Link to comment https://forums.phpfreaks.com/topic/34406-is-there-a-php-equivalent-of-onrelease/ Share on other sites More sharing options...
utexas_pjm Posted January 16, 2007 Share Posted January 16, 2007 That's generally the way things work with PHP as it's a server side language. AJAX allows you to make calls to the server asynchronously via javascript. You might want to have a look on google and see if this is something worth implementing.Best,Patrick Link to comment https://forums.phpfreaks.com/topic/34406-is-there-a-php-equivalent-of-onrelease/#findComment-161940 Share on other sites More sharing options...
taith Posted January 16, 2007 Share Posted January 16, 2007 you'd want to use ajax for something like that... Link to comment https://forums.phpfreaks.com/topic/34406-is-there-a-php-equivalent-of-onrelease/#findComment-161941 Share on other sites More sharing options...
Accurax Posted January 16, 2007 Share Posted January 16, 2007 Ajax is apparently the coolest thing on the web atm .... i have to admit it looks pretty funky :) Link to comment https://forums.phpfreaks.com/topic/34406-is-there-a-php-equivalent-of-onrelease/#findComment-161943 Share on other sites More sharing options...
taith Posted January 16, 2007 Share Posted January 16, 2007 well ya... once you get past the incompetance of javascript having something that is client side with the power of php... your limits are practically endless... Link to comment https://forums.phpfreaks.com/topic/34406-is-there-a-php-equivalent-of-onrelease/#findComment-161968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.