PHP3 Script not responding. Yields a blank screen only.
exp.
<?php
$msg = "Sender Name:\t$sender_name\n";
$msg .= "Sender E-Mail:\t$sender_email\n";
$msg .= "Message:\t$message\n\n";
$recipient = "you@youremail.com";
$subject = "Web Site Feedback";
$mailheaders = "From: My Web Site <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $sender_name</H1>";
echo "<P align=center>Your feedback has been sent.</P>";
echo "</BODY></HTML>";
?>
Tony
Paul Cager - 30 Jul 2006 22:01 GMT
> PHP3 Script not responding. Yields a blank screen only.
>
[quoted text clipped - 21 lines]
>
> Tony
Well, I don't like the look of the "<TITLE>Form Sent!</TITLE" part -
why have you escaped the opening "<" on the "</title>"? But this
shouldn't have stopped it working as you've got a correct "</head>" tag.
Has the script failed before it got to this place - check your error log.
You could try rewriting it as a JSP / servlet. In Java.
tonyd62246@aol.com - 31 Jul 2006 01:41 GMT
> > PHP3 Script not responding. Yields a blank screen only.
> >
[quoted text clipped - 28 lines]
>
> You could try rewriting it as a JSP / servlet. In Java.
Replacing the escape with < still yields a blank form. The show_form
works ok. It's
the script thats failing. The Script is failing before it gets to the
title. It must be the
<?php or the $.
Tony.