Hi Everyone,
I am a newbie to PHP, but would like to learn more. Now I am stuck on a really simple task.
I am creating a very simple email validation script which should check if it is a Hotmail och Yahoo-mail adress.
If i use == in my elseif statemnt, I will have to specify what email adres I want to ban..
I would like to do something similar to *@.com. I am sure this is doable, but I dont know how..
How can I make the text I am showing in my print statement a hyperlink? I tried including a <a href="test.php">Click here</a> in my print statement, but did not work..
Thanks in advance for your coop!
<?
if($email == "")
{
print("You have forgotten to include your emailadress!<br>\r\n");
print("Pls use the BACK button in your browser to start over.");
}
elseif(($email == "hotmail.com") OR ($email == "yahoo.com"))
{
print("This offer is not valid for Hotmail och Yahoo-mail users.<br>\n\r");
print("Thank you for your interest\n\r");
}
{
else
{
include('tack_kampanj2.txt');
}
?>