A web script that I’m using allows a User to upload a video, and then is redirected to a Contact Form, and then submits it. The Contact Form info is then sent via this code(below), to my email address. I’d like help with how to add the link (to the uploaded video file) with a message, to my email address & the User’s email address (that was entered into the Contact Form). Any help will be appreciated:
<?php
//if(isset($_POST['url']) && $_POST['url'] == '')
{
$youremail = '[email protected]';
$body = "ContactForm:
Name: $_POST[name]
E-Mail: $_POST[email]
Message: $_POST[message]";
if( $_POST['email'] && !preg_match( "/[\r\n]/", $_POST['email']) ) {
$headers = "From: $_POST[email]";
} else {
$headers = "From: $youremail";
}
mail($youremail, 'Contact Form', $body, $headers );
}
if(empty($error))
{
header('Location: index.php');
exit;
}
?>