Re: Re: functions and <a href>
| From: | Ray | Date: | Mon, 03 Mar 2003 22:42:01 +0000 |
| Subject: | Re: Re: functions and <a href> | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137976@lists.php.net to get a copy of this message | ||
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 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