[PHP] Re: functions and a href

2003-03-03 Thread Martin Johansson
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

Re: [PHP] Re: functions and a href

2003-03-03 Thread Ray
does the function logout() log someone out of a session, or does it return the url for where they go to logout? and what about it isn't working? On Monday 03 March 2003 16:32, you wrote: Ok to make it simplier, this is what I wanna do! ?php echo a href=logout();Logout/A; function

Re: [PHP] Re: functions and a href

2003-03-03 Thread Leif K-Brooks
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() {

Re: [PHP] Re: functions and a href

2003-03-03 Thread Martin Johansson
it logs somone out of a session.. Ray [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] does the function logout() log someone out of a session, or does it return the url for where they go to logout? and what about it isn't working? On Monday 03 March 2003 16:32, you wrote: Ok to

[PHP] Re: functions and a href

2003-03-03 Thread Monty
You can't call a PHP function directly from an HTML tag. You'll instead need to do something like this: a href='/logout.php' Then create a logout.php file that has your logout code. From: [EMAIL PROTECTED] (Martin Johansson) Newsgroups: php.general Date: Mon, 3 Mar 2003 23:32:16 +0100