I have an older PHP script that works just fine. It has recently started giving me an internal server error when someone registers on the site with an invalid email address. When you submit the form, the server pauses and then leads you to the "Internal Server Error" message. The information is still passed to the database and the user can click the back button and log in just fine. I need to stop the server error.
Here is what I see in the error log:
malformed header from script. Bad header=/home/site/dead.letter...
I need this fixed today! I can only copy the portion of the script below that processes the account register email. I believe that this is where the malformed header error is coming from.
Please look through this and post your bid on this project. I will pay someone $25 right now to create a fix. Keep in mind, this script WORKS as long as someone inputs a VALID email address! It gives me the error when someone inputs a made up email address.
# -----------------------------------------
# sends email to webmaster
# telling new user registered
# -----------------------------------------
$topic = "New user registered - $lastid";
mail($email2,$topic,
"$lastid $user_fullname
$user_email
registered",
"From: $email1\nReply-To: $email1\n" );
# -----------------------------------------
# sends email to customer telling them their
# profile is active
# change the below to modify the email
# -----------------------------------------
mail($user_email,"*Your Account is now Active*",
"
Thank you for registering with our site!
",
"From: $email2\nReply-To: $email2\n" );
include("[login to view URL]");
echo "<font face=verdana, arial size=2>Your account is now active.<br><br><a href=[login to view URL]>Click here to login</a>.";
include("[login to view URL]");
exit;
};
Hello, the issue is not with this snippet of code you posted. I would need to start tracing it to find the root cause. I'll be sending you a PM shortly with a couple of questions. Thanks!
$30 USD σε 1 ημέρα
4,7 (32 αξιολογήσεις)
5,4
5,4
10 freelancers δίνουν μια μέση προσφορά $30 USD για αυτή τη δουλειά
Hi sir , My name is Luigi Widmore and i'm an expert web developer.
My areas are HTML/CSS PHP/MYSQL Design/Photoshop.
I can deliver this project in few hours from awarding.
Please check PM for details , you may be impressed.
Thank you
Hi, We are a team of designers and developers who are in this field from more than 13 years. We are a web design and Development Company, providing web development in PHP, CMS based websites, E-commerce website, WordPress/Joomla web design template, logo design, brochure design and banner design... We also provide SEO and hosting services. Please check PMB. Thanks and Regard