What is wrong with this script?

if element("email")="email"{
show(element ("Error"));
}
else
{
loadVariables("http://www.website.com/script.php","POST")
}

What I want this script to do is, check an EDIT BOX with the Variable "Edit" and see if it has the word "email" in it.

If it does, I want it to load a layer that I created with an error message.

Otherwise, send the variables to my php file.