Forums

PHP

This topic is locked

about php functions

Posted 04 Jun 2006 03:55:06
1
has voted
04 Jun 2006 03:55:06 na na posted:
I have a small function in the top of my page and I want to call this function when an image is clicked but every time the page is loaded the function is executed how to prevent that and execute the function only when I want that?

thanks

Replies

Replied 06 Jun 2006 11:46:01
06 Jun 2006 11:46:01 Patrick Woldberg replied:
The PHP is running on the server and executed before the page is send to the user, to execute functions by a click from a user can only be done by using a client-side script like JavaScript.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------

Reply to this topic