hello every 1
is it possible to call a user define php function on the clik event of a button

Recommended Answers

All 3 Replies

hello every 1
is it possible to call a user define php function on the clik event of a button (on html page)

Directly no
php is finished on the server before the page is sent
javasript runs on the users browser and can respond to onclick events
the combination of javascript and php to get user events and resend something in php from the server is called ajax
depending on the simplicity/difficulty of the unstated effect you want to a cheive a javascript or ajax will accomplish it.

Thnxxxxxxxxxxxxxxxxxxxxxxxxxx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.