events in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fobilow
    New Member
    • Jun 2007
    • 6

    events in php

    pls can someone tell me if it is possible to handle events in php, i'm currently working on a website. i want to control what happens to some forms depending on an event something like the javascript's onclick.

    i would be grateful if i receive a solution to this problem.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, fobilow. Welcome to TSDN!

    Originally posted by fobilow
    pls can someone tell me if it is possible to handle events in php, i'm currently working on a website. i want to control what happens to some forms depending on an event something like the javascript's onclick.
    About the most effective way to do this would to create an event handler that sets up an AJAX call to your PHP script.

    There is no direct way to interact with the server side from the client side (iow, JavaScript cannot call PHP functions and vice versa).

    Comment

    Working...