Intitialize a session variable after onclick event is fired

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pandu13
    New Member
    • Aug 2013
    • 16

    Intitialize a session variable after onclick event is fired

    hello,

    i want to initialize a php session variable when user clicks on a link, using a php function or any other way.

    for example
    <a href="http://bytes.com/submit/g/#" onclick="phpfun ction()"> link</a>
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    A link can not "run" a PHP function in the sense that javascript can. You can submit data to a PHP page and set your variable that way however.

    Comment

    Working...