php syntax error, unexpected $end line 36 -
okay, original suggestions seemed work. no error codes them before. telling me not ending well. i've tried multiple syntax nothing seems work. , if take away... removing <? end if ?>
or whatnot. ideas?
<?php $correct = true; if ($_get["firstname"] == "") $correct = false; if (preg_match("/^.+@\w+\.\w{2,4}$/", $_get["email"])) $correct = false; $to = "sample@domain.com"; $subject = "application request"; $message = "a new request has come in!\n\n"; $message .= $_get["firstname"]; $message .= $_get["lastname"];"\n"; $message .= $_get["email"];"\n"; $message .= $_get["phone"];"\n"; $message .= $_get["dropdown"];"\n"; $message .= $_get["address"];"\n"; $message .= $_get["dropdown2"];"\n"; $message .= $_get["textarea"];"\n"; ?> <html> <head> <title>something funky </title> </head> <body> <?php if ($correct): ?> thank applying. shortly.<br> <?php else: ?> please complete form. <?php end ?> </body> </html>
change
<?php end ?>
by
<?php endif; ?>
Comments
Post a Comment