Page 1 of 1

Executing a link with conditions

Posted: Thu Mar 25, 2010 1:04 pm
by BlackJim
Hi every one,

I have a next link
echo '<a href="MyPage.php">Open here</a>';

and next variable
$op = "";

I want this link to open MyPage.php if $op == "Yes";

Example
If ($op == "Yes")
{
// Open MyPage
}
Else
{
Echo "You are not allow !"
}

Thanks.