Hi all,
I need to check the content of a $_SESSION var, and depending on the content execute a statement. At the same time I need to check for the case of the content.
Example: if the content of the $_SESSION var is 'changeme', in UPPER or LOWER CASE, redirect.
This is what I have:
if($_SESSION['update'] == 'changeme')
{
$_SESSION['changeme'] = $_SESSION['_amember_user']['street'];
if($_SESSION['changeme'] == 'changeme')
{
header("Location:profile.php");
exit;
}
if($_SESSION['update'] == 'changeme')
{
header("Location:profile.php");
exit;
}
}
Can someone please advise the best way to do this.