sandbudd Posted August 14, 2008 Share Posted August 14, 2008 I get this error on a simple form mail? The server encountered an unexpected condition which prevented it from fulfilling the request. The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Painting Services in Sanibel, Captiva, and Ft. Myers by John Grey Painting</title> <link href="construct.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- body { background-color: #FF9C02; } .style1 {font-size: 14px} --> </style></head> <body> <script language="php"> $email = $HTTP_POST_VARS[email]; $mailto = "[email protected]"; $mailsubj = "Website Comment/Request"; $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> Link to comment https://forums.phpfreaks.com/topic/119707-solved-getting-this-error/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.