Hello
I was wondering how to create an array with all fields in a email form and then send the email
<?php
if(isset($_POST['submit']))//array{
$content=array(
$name=strip_tags($_POST['name']);
$email=strip_tags($_POST['email']);
$phone=strip_tags($_POST['phone']);
$address=strip_tags($_POST['address']);
$city=strip_tags($_POST['city']);
$title=strip_tags($_POST['subject']);
$message=strip_tags($_POST['message']);
);
}
$to = "email@domain.com";
$subject =$title;
$from = $name;
$headers = "From:" . $from;
mail($to,$subject,$content/*change array to string so that can be sent by email*/
,$headers);
echo "Mail Sent.";
else"Email not send"
?>
Thank you in advance.