Calling a PHP function within an <a > tag, anchor tag

Posted by Roland on Stack Overflow See other posts from Stack Overflow or by Roland
Published on 2010-05-06T15:21:10Z Indexed on 2010/05/06 15:28 UTC
Read the original article Hit count: 172

Filed under:
|

Is it possible to call a PHP function within an anchor tag. I have a PHP function called logout();

Now I want something similar to this.

<a href="logout();" >Logout</a>

I know with Javascript this works but what is the best approach using PHP function?

© Stack Overflow or respective owner

Related posts about html

Related posts about php