I created an email form using php and want to have it sent to my e-mail. however all the values for the message are in an array. I used the extract function, but it is coming back null this is the code for the e-mail portion of it.
foreach($good_data as $field => $value)
{
$good_data[$field] = mysqli_real_escape_string($cxn,$value);
}
$to = "***********";
$sub = "Cameron Web Design";
$mess = extract($good_data[$value]);
mail($to,$sub,$mess);
include('success.html');
It will send the fields, but not what was put into them.