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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    JoeComins Guest

    Default Newblet Error - Help :'(

    I hate asking for help in anything, but here goes . . .

    I have made a form handeler and form, curtesy of ThyBag.co.uk (L)

    I've done something wrong, and now I only get emails with the topics, like Name, COntact Email, Contact Number, without the informationm with them

    HELP ME PLEASE

    contact.php :
    <div class="content">
    <div class="header"><div class="icon"></div><img src="images/content.gif" width="89" height="5" alt="Grolsch Content" /></div>
    <p align="center"> <form name="form" id="form" method="post" action="formh.php">
    <table width="95%" border="0">
    <tr>
    <td width="31%" valign="top">Name:</td>
    <td width="69%"><input name="name" type="text" id="name" size="75" /></td>
    </tr>
    <tr>
    <td valign="top">Email Address: </td>
    <td><input name="email" type="text" id="email" size="75" /></td>
    </tr>
    <tr>
    <td valign="top">Contact Number: </td>
    <td><input name="number" type="text" id="number" size="75" /></td>
    </tr>
    <tr>
    <td valign="top">Comments:</td>
    <td><textarea name="comments" cols="75" rows="4" id="comments"></textarea></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="Contact Grolsch"> &nbsp;</td>
    </tr>
    </table> </p>
    <p>&nbsp;</p>
    </div>
    formh.php
    <?php
    if ($_SERVER['REQUEST_METHOD'] != 'GET'){
    $name = $_POST['Name'];
    $email = $_POST['Email'];
    $number = $_POST['Number'];
    $comments = $_POST['Comments'];

    $messig = "

    Name: $name
    \n
    Email: $email
    \n
    Message: $number
    \n
    Ip: $comments

    ";

    mail("comins2005********.co.uk", $subject, $messig);

    Header("Location: TY.php");

    }
    else
    {
    echo 'ERROR';
    }

    ?>
    TY.php
    <div class="content">
    <div class="header"><div class="icon"></div><img src="images/content.gif" width="89" height="5" alt="Grolsch Content" /></div>
    <p align="center">

    THANKS

    </p>
    <p>&nbsp;</p>
    </div>
    Thanks

    Joe Comins

  2. #2
    Join Date
    Jun 2006
    Location
    Why?
    Posts
    68
    Tokens
    0

    Default

    Well on the mail form it says $subject yet you did not define $subject. It probably wont fix the problem but i wanted to point it out.


  3. #3
    JoeComins Guest

    Default

    Thats, but I don think it will make any difference - Ill try it

  4. #4
    JoeComins Guest

    Default

    Worked it out myself - Vyer newblet error

    +Rep everyone anyway

  5. #5
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    was it by any chance the fact you called the input name and then used $_POST['Name']; ??

  6. #6
    Join Date
    Aug 2005
    Location
    Location Location
    Posts
    1,730
    Tokens
    0

    Latest Awards:

    Default

    ^^ I believe the name was actually asking for the persons name

  7. #7
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    no no shutup..

  8. #8
    Join Date
    Aug 2005
    Location
    Location Location
    Posts
    1,730
    Tokens
    0

    Latest Awards:

    Default

    Wonderfully nice

  9. #9
    JoeComins Guest

    Default

    Splintor - Thats correct - It was - Took me 5 minutes to spot that ''/

    Cumec - Splintor meant teh Field name, not the text



    Thanks,

  10. #10
    Join Date
    Aug 2005
    Location
    Location Location
    Posts
    1,730
    Tokens
    0

    Latest Awards:

    Default

    lol, im a bit thick, please lay off...

Page 1 of 2 12 LastLast

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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