Hello, I could use some help with my submit.php file (below). This code is not something I created, but it woks successfully at sending the email, but the video link is still not arriving. The email message, that arrives successfully, shows, for example:
UploadForm-M:
Name: Chris-Test
E-Mail: chris8@…mail.com
Message: Test-Test
Video:
Any help/comments will be appreciated.
<?php
// if the url field is empty
//if(isset($_POST['url']) && $_POST['url'] == '')
{
// put your email address here
$youremail = '[email protected]';
// Important: if you added any form fields to the HTML, you will need to add them here also
$body = "UploadForm-M:
Name: $_POST[name]
E-Mail: $_POST[email]
Message: $_POST[message]
Video: $_POST[videolink]";
if( $_POST['email'] && !preg_match( "/[\r\n]/", $_POST['email']) ) {
$headers = "From: $_POST[email]";
} else {
$headers = "From: $youremail";
}
// finally, send the message
mail($youremail, 'Contact Form', $body, $headers );
}
// otherwise, let the spammer think that they got their message through
// if no errors are set, continue
if(empty($error))
{
header('Location: http://real....com');
exit;
}
?>