1 of 2 < >

FreeHostForum Rules and Guidelines

This document is designed to clarify various responsibilities of all members of the board at

Please read it and become familiar with it, as by posting anywhere on this board you agree to it. If a rule is broken you shall be warned and your post / options may be modified.

Board-wide Policies:

Do not post links (ads) in posts or threads in non advertising forums.

Forum Rules
Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.

Members should post in a way that is respectful of other users. Flaming or abusing users in any way will not be tolerated and will lead to a warning or will be banned.

Members are asked to respect the copyright of other users, sites, media, etc.

Spam is not tolerated here in most circumstances. Users posting spam will be banned. The words and links will be censored.

The moderating, support and other teams reserve the right to edit or remove any post at any time. The determination of what is construed as indecent, vulgar, spam, etc. as noted in these points is up to Team Members and not users.

Any text links or images contain popups will be removed or changed.

Signatures may contain up to four lines

Text in signatures is subject to the same conditions as posts with respect decency, warez, emoticons, etc.

Font sizes above 3 are not allowed

Links are permitted in signatures. Such links may be made to non-Freehostforum material, commercial ventures, etc. Links are included within the text and image limits above. Links to offensive sites may be subject to removal.

You are allowed ONLY ONE picture(banner) upto 120 pixels in width and 60 pixels in height with a maximum 30kB filesize.

In combination with a banner/picture you can have ONLY ONE LINE text link.

Webmaster related advertising is allowed in Webmaster Marketplace section only. Free of charge.

Shopping related (tangible goods) advertising is allowed in Buy Sell Trade section only. Free of charge.

No advertising allowed except paid stickies in other sections.

Please make sure that your post is relevant.

More to come soon....
2 of 2 < >

Advertise at FreeHostForum

We offer competitive rates and a many kinds of advertising opportunities for both small and large scale campaigns.More and more webmasters find advertising at is a useful way to promote their sites and services. That is why we now have many long-term advertisers.

At here, we also want to thank you all for your support.

For more details:

More ad spots:
See more
See less

Contact Form

  • Filter
  • Time
  • Show
Clear All
new posts

  • Contact Form

    Today i be giving this out of how create your own contact form.

    Now this code is the e-mail form code. You must save it ass contact.php.

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Email Form </title>
    <form method="post" action="sendemail.php">
    <!-- DO NOT change ANY of the php sections -->
    $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 />
    Copy Sender ? No<input name="ccopy" type="radio" value="ccno" />   Yes<input checked="checked" name="ccopy" type="radio" value="ccyes" /> <br />
    <br />
    Attention:<br />
    <select name="attn" size="1">
    <option value=" Your Option Value ">Your Option </option>
    <option value=" Your Option Value ">Your Option </option>
    <option value=" Your Option Value ">Your Option </option>
    <option value=" Your Option Value ">Your Option </option>
    <br /><br />
    Mail Message:
    <br />
    <textarea name="notes" rows="4" cols="40"></textarea>
    <br />
    <input type="submit" value="Send Mail" />
    <br />
    Now open up your tect editor again, and put this code in which is the send e-mail, you need to save it as sendemail.php.
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sendemail Script</title>
    <!-- Required: YOUR email ($myemail). Optional: Enter CC email address ($ccx)
    Required: Add the link for the 'next page' (at the bottom) -->
    $myemail = "Your E-Mail Here";
    $ccx = "";
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Feedback was NOT submitted</h2>\n";
    if(empty($visitor) || empty($visitormail) || empty($notes )) {
    echo "<h2>Use Back - fill in all fields</h2>\n";
    echo $badinput;
    $todayis = date("l, F j, Y, g:i a") ;
    $attn = $attn . "(" . $ccopy . ")" ;
    $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";
    if (($ccopy == "ccyes") && ($visitormail != ""))
    mail($visitormail, $subject, $message, $from);
    if ($myemail != "")
    mail($myemail, $subject, $message, $from);
    if ($ccx != "")
    mail($ccx, $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>
    </html> | | <a href=""><img src="" border="1" width="100" alt="Free Webtools for all" /></a> | <a href=""><img src="" border="1" width="100" alt="Index Rated Directory - Rating Quality Sites" /></a>

    Get all Games,Apps and Wallpapers Nokia, Samsung and Sony Erricson!!

  • #2
    Re: Contact Form

    Thanks for the great code