I want the else statment to show up as well when the field is left blank.Code:<?PHP $email = $_GET['email']; if ($email != 'Email'){ echo ("<input name=\"email\" type=\"text\" value=\"{$email}\" alt=\"Email\" class=\"text_boxes\" />"); } else { echo ("<input name=\"email\" type=\"text\" value=\"Email\" alt=\"Email\" class=\"text_boxes\" onfocus=\"(this.value == 'Email') ? this.value = '' :false;\" onblur=\"(this.value == '') ? this.value = 'Email' : false;\" />"); } ?>
I tried...
but that didn't work.Code:if ($email != 'Email' || !empty($email))
Any ideas?
Thanks,
Mario






Bookmarks