how to do an if else statement

i use this php code to display the email of the logged in user…

[php]

<?php require_once("../slpw/sitelokpw.php"); echo $slemail; ?>

[/php]

now i want to give an option to enter the email in a form and check if both of them matches…
and if it matches then continue to do with what the rest of the code… and if it doesnt match give an error message and stop the rest of the code to process…

pls help

Sponsor our Newsletter | Privacy Policy | Terms of Service