Code: Select all
<?php
Keep in mind, you can do $myclass->email = $_POST['email']; or whatever you want to do with it.
Let's run the email_check function inside the MyClass class.
$check_email = $myclass->check_email();
if(!$check_email){
echo "The email address is not valid!";
} else {
echo "The email address is valid!";
}
?>As I'm really trying to practice with this...
My question is this:
if (!$check_email)
This is checking to see if it's FALSE right?
Does register globals affect this?