Jump to content

Is there a PHP equivalent of onRelease()?


MortimerJazz

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.