Hello, currently throughout my entire site, I am using a basic, include_once in the php, to redirect the user to another page (msgToUser.php), and display the desired message: For example on my profile page I have several instances of the following, whereby the $msgToUser variable may be different depending on certain things:
$msgToUser = "You and $firstname are NOT friends, but a friend request was sent on $request_time <br />";
include_once('msgToUser.php');
exit();
Or on an another page (activation.php) I may have:
if ($doublecheck > 0) {
$msgToUser = "Your account has been activated! <br /><br />
You may now login.";
include 'msgToUser.php';
exit();
}
What I want to be able to do, is replace all of these redirects with a simple jquery popup, particularly the Jquery Modal Dialog confirmation box (in case I want to include a link in the popup). I already have the jquery library on my site, along with the jquery-ui and jquery-css. Is there a simple way to do this by adding a little script to either the initial page or to the msgToUser.php page? I am sort of new to using Jquery... Also would it be wise to keep the msgToUser.php page in place (somehow in conjunction with the jquery popup), in case someone does not have a js/jquery enabled browser?