dit is om te beginnen de regel met de fout:
PHP Code:
<?php
mail('webmaster@fromalk.be','$mail_tit','$std_text $date $door $user_IP\n $terug $replyadress\n\n$mail_message');
?>
en dan het volledige code:
PHP Code:
<?php
//first i'll have to remake te variables the post method gave this poage
$echtenaam = $_POST['realname'];
$nick = $_POST['nickname'];
$replyadress = $_POST['emailadress'];
$mail_message = $_POST['contact'];
$mail_tit = $_POST['title'];
//General info
$date = date("Y-m-d H:i:s");
$user_IP = $_SERVER['REMOTE_ADDR'];
//Now I'll have to make sure that all the data has a back up so I'll insert in my DB
include("config.php");
mysql_connect($db_server, $db_login, $db_pass) or die("Can't connect to db; MySQL returned: ".mysql_error());
mysql_select_db($db_naam) or die("Can't select a db; MySQL returned: ".mysql_error());
$mailsys = mysql_query("INSERT INTO mailsystem (mail_ID,title,datum,mail,realname,nickske,replyadress,ip)". "VALUES ('NULL', '$mail_tit', '$date', '$mail_message', '$echtenaam', '$nick', '$replyadress', 'user_IP')");
$std_text = "Mail verzonden op fromalk.be op: ";
$door = "door";
$terug = "terugmailen op: "
mail('webmaster@fromalk.be','$mail_tit','$std_text $date $door $user_IP\n $terug $replyadress\n\n$mail_message');
$ty = "The following e-mail was send to fromalk:";
$rep = "I'll make sure I'll reply as soon as possible";
mail('$replyadress','tank you for mailing fromalk','$ty\n $mail_message\n <b>$rep</b>');
include("graph/header.php");
echo "Thank you for mailing fromalk!<br />I'll reply as soon as possible.<br />
Please click <a href=\"/home.php?req=start\" target=\"_parent\">here</a> to return to the starting page...<br /><br /><b>Have a nice day!</b>";
include("footer.php");
?>
Deze fouten zie je als je probeert te mailen op www.fromalk.be/contact.php
k weet niet waarom...:
Parse error: parse error in /home/httpd/vhosts/fromalk.be/httpdocs/contact_submit.php on line 25