[Solved] how can i create successfull popup window after register in php [closed]


nice question! They way you could do something like that would be.. to try and check what is your url – in this case is:

header("Location: ../Home.php?signup=success");

… and basically see if it contains the keyword “signup=success”.
To do this, you need

$url="http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];


if (strpos($url,'signup=success') !== false) {
    echo 'Thank you for signing up!';
} else {
    echo 'Something went wrong!';
}

Another way to do what you want, would be maybe with cookies or even better with session variables you can google them, but I have links for them to w3schools

solved how can i create successfull popup window after register in php [closed]