Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default form handler problem

    Error is:

    Parse error
    : syntax error, unexpected $end in /home/colin/public_html/mail.php on line 22

    PHP Code:
    <?PHP
    if ($_SERVER['REQUEST_METHOD'] != 'GET'){ 
    $habboname $_POST['habboname'];
    $email $_POST['email'];
    $message $_POST['message'];

     
    $messig "

    Name: 
    $habboname
    \n
    Email: 
    $email
    \n
    Message: 
    $message
    \n
    Ip: 
    $ip

    "


    $subject $name
     
    mail("email goes here its just removed."$subject$messig); 
     
    Header("Location: www.colin-roberts.net");
    ?>
    Thanx + Rep

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    well for one you forgot to close you if with a } which probably belongs just before the header redirect.

  3. #3
    Join Date
    Aug 2006
    Posts
    181
    Tokens
    0

    Default

    Add an } to the end of the script before the ?>

    Edit:

    PHP Code:
    <?PHP
    if ($_SERVER['REQUEST_METHOD'] != 'GET'){ 
    $habboname $_POST['habboname'];
    $email $_POST['email'];
    $message $_POST['message'];

     
    $messig "

    Name: 
    $habboname
    \n
    Email: 
    $email
    \n
    Message: 
    $message
    \n
    Ip: 
    $ip

    "


    $subject $name
     
    mail("email goes here its just removed."$subject$messig); 
     
    Header("Location: www.colin-roberts.net");

    }

    ?>
    Last edited by Yeah; 03-09-2006 at 09:55 AM.

  4. #4
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Yep, what they said... It took for ages with one of mine scripts cos i kept changing it and forgot to add }'s and remove em..

  5. #5
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    lol stupid error :S you always look for the hard reasons and miss the stupid mistakes.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  6. #6
    Join Date
    Aug 2006
    Posts
    181
    Tokens
    0

    Default

    Did it work?

  7. #7
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    still not getting emails but it might be delayed :S

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  8. #8
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by Soccer-Pro View Post
    still not getting emails but it might be delayed :S
    system i use goes auto emails arrive directly.
    www.olivierpauwels.com click contact

Posting Permissions

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