A
Anonymous
Guest
I have the following code, and would like to make it so that if $pw == $adminpass, I want it to display a url to the admin page.
if $pw does not == $adminpass, I do not want it to display that url.
How do I code that?
<?
$adminpass = "test123";
if ($pw == $adminpass)
{
<a href="go.php?url=www.google.com">google</a>
}
else
{
print("Wrong password");
}
?>
if $pw does not == $adminpass, I do not want it to display that url.
How do I code that?
<?
$adminpass = "test123";
if ($pw == $adminpass)
{
<a href="go.php?url=www.google.com">google</a>
}
else
{
print("Wrong password");
}
?>