View Single Post
  #2 (permalink)  
Old Nov 18th, 2007, 21:46
alexgeek's Avatar
alexgeek alexgeek is offline
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,800
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: PHP Logout Message when redirect

Okay tell the redirect to go to: /?logout

This is a GET query. So where you want the message to appear put the following code:
PHP: Select all

if (isset($_GET['logout'])) {
echo 
"You have logged out";

This basically says "If logout came in the URL succeeding a question mark then say this".
Reply With Quote