1. #1
    fromalk's Avatar
    Registered
    21/07/03
    Location
    Alken / hasselt
    Posts
    3,725
    iTrader
    145 (97%)
    Mentioned
    0 Post(s)
    Reputation
    0/1

    php: mail form error

    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
    no votes  

  2. #2
    fromalk's Avatar
    Registered
    21/07/03
    Location
    Alken / hasselt
    Posts
    3,725
    iTrader
    145 (97%)
    Mentioned
    0 Post(s)
    Reputation
    0/1
    prob op regel 26 is opgelost, nu is het op regel 29 (de laatse van dit stukje:

    PHP Code:
    mail('webmaster@fromalk.be',
          
    $mail_tit,
          
    $std_text .' '$date .' '$door .' '$user_IPn
            
    .'<br /> '$terug .' '$replyadress'<br /><br />' .$mail_message); 
    no votes  

  3. #3

    Registered
    18/11/02
    Location
    Eke, Belgiƫ
    Posts
    2,448
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0
    Punt vergeten ...

    $replyadress'<br /><br />'

    moet worden

    $replyadress . '<br /><br />'




    :/
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in