After the migration it has now come to my attention that form mailers have stopped working. The migration coincided with an upgrade to a new ISPConfig as well as moving from CentOS 4.4 to CentOS 5.0. I've checked and cannot find any discrepancies in the configuration files for httpd.conf or php.ini that would cause these php files to stop functioning. The key issue is that the mail DOES go through per se, but there is not any piece of information included any longer. I tried three different mailers, all developed independently from various websites that were working prior to the migration, and all three failed to operate. Let me stress these WERE working perfectly fine prior to the upgrade. LOG Code: [Mon Feb 11 22:22:42 2008] [error] [client 70.178.175.229] PHP Notice: Use of undefined constant email - assumed 'email' in /var/www/web51/web/thanks.php on line 20, referer: http://www.schlechthatchery.com/orderform.html [Mon Feb 11 22:22:42 2008] [error] [client 70.178.175.229] PHP Notice: Undefined variable: HTTP_POST_VARS in /var/www/web51/web/thanks.php on line 20, referer: http://www.schlechthatchery.com/orderform.html [Mon Feb 11 22:22:42 2008] [error] [client 70.178.175.229] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www/web51/web/thanks.php on line 24, referer: http://www.schlechthatchery.com/orderform.html [Mon Feb 11 22:22:42 2008] [error] [client 70.178.175.229] PHP Warning: Variable passed to each() is not an array or object in /var/www/web51/web/thanks.php on line 26, referer: http://www.schlechthatchery.com/orderform.html [Mon Feb 11 22:22:42 2008] [error] [client 70.178.175.229] PHP Notice: Use of undefined constant email - assumed 'email' in /var/www/web51/web/thanks.php on line 27, referer: http://www.schlechthatchery.com/orderform.html PHP FORM MAILER Code: <title>Thanks For Your Order</title> <style type="text/css"> <!-- body { background-image: url(backgroundyellow.jpg); } .style1 {font-size: 24px} --> </style></head> <body> <p> </p> <p> </p> <p align="center"><strong><span class="style1">Thank You for your Order</span> <script language="php"> $email = $HTTP_POST_VARS[email]; $mailto = "derek<AT>andovermeat.com"; $mailsubj = "Website Order"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Values submitted from web site form:\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; } if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); } </script> </strong></p> <p align="center">Click <a href="http://www.schlechthatchery.com">Here</a> to return to Schlecht Hatchery Website</p> </body> </html> ORDER FORM HTML Code: <form action="http://www.schlechthatchery.com/thanks.php" method="post" name="form1" target="_self" id="form1"> <hr /> <label>Name: <input type="text" name="Name" id="Name" /> </label> <p> <label>Phone Number: <input type="text" name="Phone Number" id="Phone Number" /> </label> </p> <p> <label>Route: <input type="text" name="Route" id="Route" /> </label> </p> <p> <label>Box: <input type="text" name="Box" id="Box" /> </label> </p> <p> <label>Post Office: <input type="text" name="Post Office" id="Post Office" /> </label> </p> <p> <label>State: <input type="text" name="State" id="State" /> </label> </p> <p> <label>Zip Code: <input type="text" name="Zip Code" id="Zip Code" /> </label> </p> <p> <label>Email:</label> <input type="text" name="Email" id="Email" /> <br /> </p> <hr /> <p> <label></label> <label>Date Wanted: <input type="text" name="Date Wanted" id="Date Wanted" /> </label> </p> <p> <label>Second Choice Date: <input type="text" name="Second Choice Date" id="Second Choice Date" /> </label> </p> <p> <label>Breed: <input type="text" name="Breed" id="Breed" /> </label> <label>Quanity: <input type="text" name="Quanity" id="Quanity" /> </label> <label>Subtotal: <input type="text" name="Subtotal" id="Subtotal" /> </label> </p> <p> <label>Breed: <input type="text" name="Breed2" id="Breed2" /> </label> <label>Quanity: <input type="text" name="Quanity2" id="Quanity2" /> </label> <label>Subtotal: <input type="text" name="Subtotal2" id="Subtotal2" /> </label> </p> <p> <label>Breed: <input type="text" name="Breed3" id="Breed3" /> </label> <label>Quanity: <input type="text" name="Quanity3" id="Quanity3" /> </label> <label>Subtotal: <input type="text" name="Subtotal3" id="Subtotal3" /> </label> </p> <p> <label>Breed: <input type="text" name="Breed4" id="Breed4" /> </label> <label>Quanity: <input type="text" name="Quanity4" id="Quanity4" /> </label> <label>Subtotal: <input type="text" name="Subtotal4" id="Subtotal4" /> </label> </p> <p> <label>Breed: <input type="text" name="Breed5" id="Breed5" /> </label> <label>Quanity: <input type="text" name="Quanity5" id="Quanity5" /> </label> <label>Subtotal: <input type="text" name="Subtotal5" id="Subtotal5" /> </label> </p> <p>Please enter second choice of breed if first choice is not avaliable.</p> <p> <label>Second Choice: <input type="text" name="Second Choice" id="Second Choice" /> </label> <label></label> </p> <p> <label>Total: <input type="text" name="Total" id="Total" /> </label> </p> <p> <label>Shipping: <input type="text" name="Shipping" id="Shipping" /> </label> From Shipping Chart</p> <p> <label>Grand Total: <input type="text" name="Grand Total" id="Grand Total" /> </label> </p> <p> <label> <input type="checkbox" name="Check" id="Check" /> Pay By Check (print this page and mail with check)<br /> <input type="checkbox" name="Credit Card" id="Credit Card" /> Pay By Credit Card</label> <br /> <label>Credit Card Number <input type="text" name="Credit Card Number" id="Credit Card Number" /> </label> <br /> <label>CCV Number (3 digit on back of card) <input type="text" name="CCV Number" id="CCV Number" /> </label> <br /> <label>Expiration Date: <input type="text" name="Expiration Date" id="Expiration Date" /> </label> <br /> <label>Digital Signature <input type="text" name="Signature" id="Signature" /> </label> by typing your name here (as it appears on your card) you authorize Schlecht Hatchery to charge your card for your order.</p> <p> <label> <input type="submit" name="Submit" id="Submit" value="Submit" /> </label> <label> <input type="reset" name="Reset" id="Reset" value="Reset" /> </label> <br /> </p> <hr /> <p><br /> </p> </form> Any help would be greatly appreciated. Thanks!
I enabled that. I also tried enabling "zend.ze1_compatibility_mode" and still there's no hope in sight for these mailers to work. Code: [Tue Feb 12 11:31:40 2008] [error] [client 70.178.175.229] PHP Notice: Use of undefined constant email - assumed 'email' in /var/www/web51/web/thanks.php on line 20, referer: http://www.schlechthatchery.com/orderform.html [Tue Feb 12 11:31:40 2008] [error] [client 70.178.175.229] PHP Notice: Undefined index: email in /var/www/web51/web/thanks.php on line 20, referer: http://www.schlechthatchery.com/orderform.html [Tue Feb 12 11:31:40 2008] [error] [client 70.178.175.229] PHP Notice: Use of undefined constant email - assumed 'email' in /var/www/web51/web/thanks.php on line 27, referer: http://www.schlechthatchery.com/orderform.html [Tue Feb 12 11:31:40 2008] [error] [client 70.178.175.229] PHP Notice: Undefined index: email in /var/www/web51/web/thanks.php on line 27, referer: http://www.schlechthatchery.com/orderform.html [Tue Feb 12 11:46:27 2008] [error] [client 70.178.175.229] PHP Notice: Use of undefined constant email - assumed 'email' in /var/www/web51/web/thanks.php on line 20, referer: http://www.schlechthatchery.com/orderform.html [Tue Feb 12 11:46:27 2008] [error] [client 70.178.175.229] PHP Notice: Undefined index: email in /var/www/web51/web/thanks.php on line 20, referer: http://www.schlechthatchery.com/orderform.html [Tue Feb 12 11:46:27 2008] [error] [client 70.178.175.229] PHP Notice: Use of undefined constant email - assumed 'email' in /var/www/web51/web/thanks.php on line 27, referer: http://www.schlechthatchery.com/orderform.html [Tue Feb 12 11:46:27 2008] [error] [client 70.178.175.229] PHP Notice: Undefined index: email in /var/www/web51/web/thanks.php on line 27, referer: http://www.schlechthatchery.com/orderform.html