Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP Sessions - HELP

Short and simple solution is to simply store a value in the session variable.
So in the first page:
PHP Code

<?php 
$_SESSION
["success"] = true;  // or any value really 

And on the second page:
PHP Code

<?php 
if (isset($_SESSION["success"])) {
    
// echo what you want
    
unset($_SESSION["success"]); // So the message doesn't always show up
} 

Hope this helped!
(Dec 16, 2014 09:33 AM)Nachfolger Wrote:  I appreciate your response, I did infact create a new thread there, because I realized it fits there, better.

Could you expand on this? Where am I supposed to place that?

Definitely don't do that POST method thing he's doing.
If I'd have to guess I'd have to assume you're missing the unset method call on the variable on the page where it shows up, put that and the end of the if block.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ΣռէifվOct 21, 2015 07:03 PM 0 74 Oct 21, 2015 07:03 PM
Last Post: Σռէifվ
by severosFeb 24, 2015 09:30 PM 2 98 Feb 24, 2015 09:30 PM
Last Post: severos
by ConsoleTVsNov 27, 2014 02:07 AM 3 110 Nov 27, 2014 02:07 AM
Last Post: ConsoleTVs