Hallo, ik heb op mijn website een contactformulier dat altijd naar behoren werkte, nu krijgen de klanten steeds een foutmelding ?
"Deprecated: Function eregi() is deprecated in /home/camping/domains/camping-floreal.be/public_html/contactscript.php on line 34
Deprecated: Function eregi() is deprecated in /home/camping/domains/camping-floreal.be/public_html/contactscript.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/camping/domains/camping-floreal.be/public_html/contactscript.php:34) in /home/camping/domains/camping-floreal.be/public_html/contactscript.php on line 55"
dit is het bewuste phpscript waar er een fout zou zijn ingeslopen
"<?php
// VALUES FROM THE FORM
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['msg'];
// ERROR & SECURITY CHECKS
if ( ( !$email ) ||
( strlen($_POST['email']) > 200 ) ||
( !preg_match("#^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$#", $email) )
)
{
print "Error: Invalid E-Mail Address";
exit;
}
if ( ( !$name ) ||
( strlen($name) > 100 ) ||
( preg_match("/[:=@\<\>]/", $name) )
)
{
print "Error: Invalid Name";
exit;
}
if ( preg_match("#cc:#i", $message, $matches) )
{
print "Error: Found Invalid Header Field";
exit;
}
if ( !$message )
{
print "Error: No Message";
exit;
}
if (eregi("\r",$email) || eregi("\n",$email)){
print "Error: Invalid E-Mail Address";
exit;
}
if (FALSE) {
print "Error: You cannot send to an email address on the same domain.";
exit;
}
// CREATE THE EMAIL
$headers = "Content-Type: text/plain; charset=iso-8859-1\n";
$headers .= "From: $name <$email>\n";
$recipient = "[email protected]";
$subject = "Contact From Your Website";
$message = wordwrap($message, 1024);
// SEND THE EMAIL TO YOU
mail($recipient, $subject, $message, $headers);
// REDIRECT TO THE THANKS PAGE
header("location: bedankt.html");
?>
"
iemand enig idee ?
alvast bedankt
917 views