Code: Select all
<?php
if ( $mode="e;profile"e; )
{
echo "e;їProfile Control Panel Placeholder]"e;;
}
if ( $mode="e;register"e; and $coppa<>"e;agree"e; )
{
echo "e;їCoppa Agreement Placeholder]"e;;
}
if ( $mode="e;register"e; and $coppa="e;agree"e; )
{
echo "e;їRegistration Form Here]"e;;
}
?>http://www.zorasdomain.com/usercp.php
Basically, what it is supposed to echo is placeholders to check my conditional statements so I can plug in those elements later. It is supposed to check $mode to decide what the user needs (registration or control panel). Then, if it decides that $mode="register", it is supposed to check if $coppa="yes". If it does, it should display the registration form. If it doesn't, then it should display the COPPA agreement. However, its displaying both (I'm using placeholders for the agreement and the form, if you hadn't caught that above). Does anyone know what I'm doing wrong here? Feel free to educate me a bit, as I'm still a complete PHP noob.
Also, clicking the above link shouldn't display anything, as $mode and $coppa wouldn't be assigned a value. No matter what they equal it seems, both conditions are output.