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 16

Thread: Contact Us Form

  1. #1
    Join Date
    Dec 2004
    Location
    Inside ur liver. Its kinda hot
    Posts
    2,004
    Tokens
    2,600

    Latest Awards:

    Default Contact Us Form

    Hey,
    I was wondering if someone could give me the code for a contact us script.

    +Rep will be given.

    Thanks
    Joz104
    Posts
    1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2250 2500 2750 3000
    Rep Counter
    900 910 920 930 940 950 960 970
    980 990 1000

    Vouches
    [X]

  2. #2
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default

    call this file contact.php



    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Email Form </title>
    </head>
    <body>
    
    <form method="post" action="sendeail.php">
    
    <!-- DO NOT change ANY of the php sections -->
    <?php
    $ipi = getenv("REMOTE_ADDR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
    ?>
    
    <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
    <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
    <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
    
    
    Your Name: <br />
    <input type="text" name="visitor" size="35" />
    <br />
    Your Email:<br />
    <input type="text" name="visitormail" size="35" />
    <br /> <br />
    <br />
    Attention:<br />
    <select name="attn" size="1">
    <option value=" Sales n Billing ">Sales n Billing </option> 
    <option value=" General Support ">General Support </option> 
    <option value=" Technical Support ">Technical Support </option> 
    <option value=" Webmaster ">Webmaster </option> 
    </select>
    <br /><br />
    Mail Message:
    <br />
    <textarea name="notes" rows="4" cols="40"></textarea>
    <br />
    <input type="submit" value="Send Mail" />
    </form>
    
    </body>
    </html>

    Name this file sendmail.php

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>Sendemail Script</title>
    </head>
    <body>
    
    <!-- Reminder: Add the link for the 'next page' (at the bottom) --> 
    <!-- Reminder: Change 'YourEmail' to Your real email --> 
    
    <?php
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) 
    {
    echo "<h2>Use Back - Enter valid e-mail</h2>\n"; 
    $badinput = "<h2>Feedback was NOT submitted</h2>\n";
    echo $badinput;
    }
    if(empty($visitor) || empty($visitormail) || empty($notes )) {
    echo "<h2>Use Back - fill in all fields</h2>\n";
    }
    
    $todayis = date("l, F j, Y, g:i a") ;
    
    $attn = $attn ; 
    $subject = $attn; 
    
    $notes = stripcslashes($notes); 
    
    $message = " $todayis [EST] \n
    Attention: $attn \n
    Message: $notes \n 
    From: $visitor ($visitormail)\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    ";
    
    $from = "From: $visitormail\r\n";
    
    
    mail("YourEmail", $subject, $message, $from);
    
    ?>
    
    <p align="center">
    Date: <?php echo $todayis ?> 
    <br />
    Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> ) 
    <br />
    
    Attention: <?php echo $attn ?>
    <br /> 
    Message:<br /> 
    <?php $notesout = str_replace("\r", "<br/>", $notes); 
    echo $notesout; ?> 
    <br />
    <?php echo $ip ?> 
    
    <br /><br />
    <a href="contact.php"> Next Page </a> 
    </p> 
    
    </body>
    </html>
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  3. #3
    Join Date
    Dec 2004
    Location
    Inside ur liver. Its kinda hot
    Posts
    2,004
    Tokens
    2,600

    Latest Awards:

    Default

    Thanks!!

    Is there such thing as a non php contact form?

    My host doesnt support PHP
    Posts
    1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2250 2500 2750 3000
    Rep Counter
    900 910 920 930 940 950 960 970
    980 990 1000

    Vouches
    [X]

  4. #4
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    No.

    It needs PHP to be sent.

  5. #5
    Join Date
    Sep 2006
    Location
    Wakefield, West Yorkshire
    Posts
    162
    Tokens
    0

    Default

    Quote Originally Posted by Sam View Post
    No.

    It needs PHP to be sent.
    No, theres CGI Contact Forms, but they seem to be more compliated.
    Left. Or have I?

  6. #6
    Join Date
    Jul 2006
    Location
    England
    Posts
    610
    Tokens
    0

    Default

    Quote Originally Posted by Joz104 View Post
    Thanks!!

    Is there such thing as a non php contact form?

    My host doesnt support PHP
    I can host it off habbofire if you want?


  7. #7
    Join Date
    Dec 2004
    Location
    Inside ur liver. Its kinda hot
    Posts
    2,004
    Tokens
    2,600

    Latest Awards:

    Default

    No, thanks anyway tho.

    I just need a free/cheap host that has PHP.
    Posts
    1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2250 2500 2750 3000
    Rep Counter
    900 910 920 930 940 950 960 970
    980 990 1000

    Vouches
    [X]

  8. #8
    Join Date
    Aug 2006
    Location
    Wakefield, West Yorkshire
    Posts
    1,351
    Tokens
    0

    Latest Awards:

    Default

    www.addyour.net :]. Not sure if its still up tho.

    edit: thats down sorry. And im not sure which 1s support PHP.
    Last edited by beer; 13-01-2007 at 03:35 PM.

  9. #9
    Join Date
    Feb 2005
    Posts
    2,503
    Tokens
    0

    Latest Awards:

    Default

    http://www.kingofhosts.com
    I have never used them but it says it supports php .

  10. #10
    ScottDiamond Guest

    Default

    You can get a form at www.feedback.com or something like that. Just google "Free feedback forms" and you can customize them, put the form on your website and it sends it to your email through their server.

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
  •