| Senior Member Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 ( Donate)
| Yea you don't really need to put that code in a function, but I think that's about how you would go about it. And the reason the way you were trying to do it won't work is because all PHP code will have already been executed and removed from the source by the time it gets to the browser, so there's no way to trigger a PHP function from an html event like that. |