<?php
session_start();
if (isset($_SESSION['name'])){
session_destroy();
session_start();
}
header("Location:includeindex.php");
exit;
?>
quick question about singing out display message
Page 1 of 16 Replies - 157 Views - Last Post: 28 February 2013 - 03:39 AM
#1
quick question about singing out display message
Posted 27 February 2013 - 07:09 PM
Hi I was wondering what I need to do to add a message you have logged out I have a working setup however I am not sure where to insert that text or how the sntax would be any help is much appreciated here is my log out code
Replies To: quick question about singing out display message
#2
Re: quick question about singing out display message
Posted 27 February 2013 - 08:54 PM
Well, you could use Javascript to 'alert' the user that he has logged out, or you might as well use an echo statement like this.
regards,
Raghav
echo "You have now been logged out";
regards,
Raghav
#3
Re: quick question about singing out display message
Posted 28 February 2013 - 02:47 AM
the echo would be fine except no matter which line I place it in it does not print to the page when user sings out.
#4
Re: quick question about singing out display message
Posted 28 February 2013 - 03:12 AM
What about the alertbox...did it work?
regards,
Raghav
regards,
Raghav
#5
Re: quick question about singing out display message
Posted 28 February 2013 - 03:24 AM
#6
Re: quick question about singing out display message
Posted 28 February 2013 - 03:33 AM
ok...alertbox is done using javascript...something like this.
What happens is...when you click on the button which says Click me!, you will get a box called alert box which will display
regards,
Raghav
function alertMe()
{
alert("Hello there! My name is alert-box");
}
<input type="button" value="Click me!" onclick="alertMe()">
What happens is...when you click on the button which says Click me!, you will get a box called alert box which will display
Hello there! My name is alert-box
regards,
Raghav
#7
Re: quick question about singing out display message
Posted 28 February 2013 - 03:39 AM
thank you for clarifying I am going to try this right now
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|