Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2006

Tip: Looking for answers? Try searching our database.

PHP3 Script not responding

Thread view: 
tonyd62246@aol.com - 30 Jul 2006 15:15 GMT
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!&lt;/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!&lt;/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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.