PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
not 100% sure what your after, but if your wanting to execute on any data then your going to need to send the data in a 'GET' form
ie using urls like: http://www.me.com/mine.php?id=1&mode=monkey
of course the other method would be to actually build a webform and get the user to submit, or to store any data you need in a session or cookie
as client-side eventhandler you can only register code that the client knows of and that it can execute. None of this applies to php (for almost all browsers).
<?php
if (logoff=="1") include "logoffscript.php";
?>
then if you want to refresh the page after this and point to index find the area in your script where the actual logout is processed and after that use
In my opinion, the best thing you can do it to have the hyperlink direct you to a php file that executes the code you want to have executed and in the end of the file execute:
header("Location: index.php");
to redirect you to the page you want to have displayed afterwards.