Activity Stream
48,167 MEMBERS
6841 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    weblinkz.ws

    Default Free Contact Form

    Hi,

    i'm looking for a free customizable contact form script with no copyright notice. Any suggestions?

    Thanks,
    Johnny
    johnny Reviewed by johnny on . Free Contact Form Hi, i'm looking for a free customizable contact form script with no copyright notice. Any suggestions? Thanks, Johnny Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    here is a nice simple contact form using php

    Code: 
    <?php
    if ($_POST['formsent'] == "1")
    {
      $email = $_POST['email'];
      $subject = $_POST['subject'];
      $youremail = $_POST['replyto'];
      $message = $_POST['message'];
      if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email))
      {
        echo "<b>The e-mail was not valid. Please click the back button on your browser and try again.</b><br><br>";
      }
      else
      {
        if($subject == "")
        {
          echo "<b>You must enter a email subject!</b><br>";
        }
        else
        {
          if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $youremail))
          {
            echo "<b>Your e-mail was not valid. Please click the back button on your browser and try again.</b><br><br>";
          }
          else
          {
            if ($message == "")
            {
              echo "<b>You must enter a message!</b><br><br>";
            }
            else
            {
              
              $headers = "From: ".$youremail;
              mail($email,$subject,$message,$headers);
              echo "<b>Your email was sent succsessfully.</b><br><br>";
            }
          }
        }
      }
    }
    else
    {
    ?>
    <form action="email.php" method="post">
      <p class="style1">
        <input type="hidden" name="formsent" value="1" />
        <input type="hidden" name="email" value="koosh@pwnz" />
        <input type="hidden" name="subject" value="KWWHunction />
        Your Email: <input name="replyto" type="text" class="style1" value="" />
        <br>
        <br />
        Message:<br /> <textarea cols="50" rows="5" name="message"></textarea>
        <br>
        <br />
        <input type="submit" value="Send Email" /><input type="reset" value="Reset" />
      </p>
    </form>
    <?php
    }
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [PHP] Getting blank message from contact form
    By coolboyz2323 in forum Technical Help Desk Support
    Replies: 6
    Last Post: 30th Sep 2012, 08:03 AM
  2. Contact form in PHP website gives errors
    By f4n3 in forum Web Development Area
    Replies: 2
    Last Post: 3rd May 2012, 03:42 PM
  3. Where can I found a good contact form?
    By Divvy in forum Webmaster Discussion
    Replies: 9
    Last Post: 31st Mar 2011, 06:00 PM
  4. 23:34 10/11/2010 - Contact form
    By JmZ in forum Web Development Area
    Replies: 4
    Last Post: 12th Nov 2010, 11:53 AM
  5. Free Contact Form Lite
    By Jesse in forum Useful Sites
    Replies: 1
    Last Post: 30th Dec 2009, 08:50 PM

Tags for this Thread

BE SOCIAL