Email doesn't send name in body

Hi I have this php code to send an email when someone fills a form and uploads a picture. When I see the email it doesn’t show their name. Any help would be appreciated

$to = "[email protected]";
$body = “http://www.example.com/$add \n\n $email \n\n $name \n\n$cat”;
mail($to, $subject, $body);

You’re not really showing us enough code here…your snippet doesn’t indicate whether or not you’ve even defined the $name or $cat variables, for instance.

Sponsor our Newsletter | Privacy Policy | Terms of Service