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 13
  1. #1
    Join Date
    Sep 2005
    Location
    everywhere.
    Posts
    1,087
    Tokens
    100

    Latest Awards:

    Default [WILL PAY] php form help

    I will pay you £1 via PayPal if you can get this form to work.

    Link :: http://www.savereg.co.uk/petition.php

    Please can you provider me the code I need to put in the file "mailer.php"

    The form code is ::

    PHP Code:
    <body>
    <
    form action="mailer.php" method="post">
    <
    div class="row"><label class="col1">Name:&nbsp;&nbsp;</label>
    <
    span class="col2"><input name="Name" class="input" type="text" id="Name" size="50" tabindex="1"  /></span>
    </
    div>
    <
    div class="row"><label class="col1">E-mail:&nbsp;&nbsp;</label>
    <
    span class="col2"><input name="Email" class="input" type="text" id="Email" size="50" tabindex="2" /></span>
    </
    div>
    <
    div class="row"><label class="col1comment">Comment:&nbsp;&nbsp;</label>
    <
    span class="col2comment"><textarea cols="20" class="textarea" rows="4" name="comment" id="comment" tabindex="4" ></textarea></span>
    </
    div>
    <
    div align="center" class="submit"><input type="image" src="images/b_send.gif" alt="send" width="52" height="19" border="0" />
    </
    div>
    </
    form>
    </
    body
    Thank you
    lol rofl lmao etc..

  2. #2
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    You want it to email to you?

  3. #3
    Join Date
    Sep 2005
    Location
    everywhere.
    Posts
    1,087
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by loserWILL View Post
    You want it to email to you?
    Yeah =]

    So it comes out as ::


    Name:
    Email:

    Comment:


    in a email to me
    ty
    lol rofl lmao etc..

  4. #4
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    This might work. Let me know if it does or doesn't.

    PHP Code:
    <?php

    // These defines your email, and how the PHP grabs the data from the other file
    $name = ($_POST["Name"]);
    $email = ($_POST["Email"]);
    $comment = ($_POST["comment"]);
    $to "youremail";
    $subject "$name's Contact Submission";
    $message "Name: $name<br />
    Email: 
    $email<br />
    Comment: 
    $comment";
    $headers "MIME-Version: 1.0" "\r\n";
    $headers .= "Content-type:text/html;charset=iso-8859-1" "\r\n";

    // This sends the email with the data and displays a message to the user
    echo "Thanks for your comment, an email has been sent to the administrator."// Edit this to whatever you want
    mail($to,$subject,$message,$headers);
    exit;

    ?>
    Last edited by loserWILL; 06-02-2008 at 11:07 PM.

  5. #5
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    cPanel > Fantastico > Other Scripts > phpFormGenerator

    Does it all for you, all you have to do is fill in the infomation

  6. #6
    Join Date
    May 2007
    Posts
    467
    Tokens
    0

    Default

    also you can look on pixel2life they have a lot of contact forms there as well.

  7. #7
    Join Date
    Sep 2005
    Location
    everywhere.
    Posts
    1,087
    Tokens
    100

    Latest Awards:

    Default

    thank you loadsssssss!!!

    could you please also tell me how to make it instantly redirect to /thankyou.html please?

    ta
    lol rofl lmao etc..

  8. #8
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Use this.

    PHP Code:
    <?php

    // These defines your email, and how the PHP grabs the data from the other file
    $name = ($_POST["Name"]);
    $email = ($_POST["Email"]);
    $comment = ($_POST["comment"]);
    $to "youremail";
    $subject "$name's Contact Submission";
    $message "Name: $name<br />
    Email: 
    $email<br />
    Comment: 
    $comment";
    $headers "MIME-Version: 1.0" "\r\n";
    $headers .= "Content-type:text/html;charset=iso-8859-1" "\r\n";

    // This sends the email with the data and displays a message to the user
    echo "Thanks for your comment, an email has been sent to the administrator.
    <meta http-equiv="
    refresh" content="2;url=thankyou.html">"// Edit this to whatever you want
    mail($to,$subject,$message,$headers);
    exit;

    ?>

  9. #9
    Join Date
    Sep 2005
    Location
    everywhere.
    Posts
    1,087
    Tokens
    100

    Latest Awards:

    Default

    grrr whys there a white background now?

    http://www.savereg.co.uk/petition.html

    - chanes back -
    lol rofl lmao etc..

  10. #10
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    I didn't mean replace the WHOLE code with that, just the contact form code.

    Is it changed back to the old one now?

Page 1 of 2 12 LastLast

Posting Permissions

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