Hi there, I need to use a text link (like href) - not a button!! - to call a function. How do I have to code this? I've absolutely no idea.
Please help me.
Thanks in advance Bogie
<a href='somepage.php?id=2'>Click here</a>
<? if ($_GET['id']==2){ somefunction(); }else{ someotherfunction(); }
function somefunction() { //some code }
?>
hth
Thanks for the help. The problem is, that I'm generating a list of such links (with a mysql query) and I don't want the user to see any data related information on the url.
So, might there be a function like the java 'onMouseClick' to do that?
Bogie