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
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
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()
{
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
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
5 matches
Mail list logo