can anyone help with this? I keep getting Parse error:syntax error, unexpected "'" in my line see code below. Do I have an extra anywhere?
Code:
// Email Stats
$from = "jane.doe@you.com";
$subject = "Bad Rating Report";
$headers = "MIME-Version: 1.0";
$message = "You have been given a bad rating for your location";
// My arrary for email address
$array=array(1=>'email@you.com',2=>"you@you.com",5=>"someboy@you.com");
// Mail based on dropdown selection and rating
if ($_POST['field_name'] < 5) {
mail($_POST['dallas_question'], "$subject", "$message", "$from" "$header");
}
Last edited by aigb_mcd; 11-21-2008 at 02:19 PM..
|