Re: Re: functions and <a href>

From: Date: Mon, 03 Mar 2003 22:39:02 +0000
Subject: Re: Re: functions and <a href>
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-137977@lists.php.net to get a copy of this message
PHP is server-side, the PHP script has already executed by the time the client sees your output. Try having the logout link call a page that calls the function. Martin Johansson wrote:
Ok to make it simplier, this is what I wanna do! <?php echo "<a href=logout();>Logout</A>"; function logout() { ..... } ?> How do I do it!!! /M
Hi I want to call a function logout() inside an <a href> statement: <a href=\"<?= logout() ?>\">logout</a> <?php function logout() { .... } ?> but this doesnt work.. how shall I do it /M
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#137977) next »