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

Results 1 to 5 of 5
  1.     
    #1
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com

    Default 23:34 10/11/2010 - Contact form

    Code: 
    <?php
        // x-minute throw up of a contact script
        // 23:21
        $end = false;
        if(isset($_POST['submit'])) {
            $errors = array();
            $subject = empty($_POST['subject']) ? 'Some Default Subject' : $_POST['subject'];
            $message = empty($_POST['message']) ? NULL : $_POST['message'];
            $from = empty($_POST['from']) ? NULL : $_POST['from'];
            $yup = 'Y3J5IHNvbWUgbW9hcg==';
             if(empty($message)) {
                $end = true;
                $errors[] = 'Empty message.';
            }
            if(empty($from)) {
                $end = true;
                $errors[] = 'Please state who you are';
            }
            if(!$end) {
                $msg = "You have received a new message!
    
    Subject: " . $subject . "
    From: " . $from . "
    Message:
    " . $message . "
    -------------
    Trollbot";
                mail("your@email.com", "New Message", $msg);
            }
        } else
            $end = true;
        if($end) {
    ?>
        <form action="" method="post">
            From: <input type="text" name="from" /><br />
            Subject: <input type="text" name="subject" /><br />
            Message: <br />
            <textarea name="message" cols="40" rows="10"></textarea><br />
            <input type="submit" name="submit" value="Send" />
        </form>
    <?php
            if(!empty($errors)) echo implode('<br />', $errors);
        } else {
    ?>
        Message sent successfully!
    <?php
        }
        // 23:25
    ?>
    Basic contact form, I expect you to modify it if you use it.
    Untested.
    JmZ Reviewed by JmZ on . 23:34 10/11/2010 - Contact form <?php // x-minute throw up of a contact script // 23:21 $end = false; if(isset($_POST'submit'])) { $errors = array(); $subject = empty($_POST'subject']) ? 'Some Default Subject' : $_POST'subject']; $message = empty($_POST'message']) ? NULL : $_POST'message']; $from = empty($_POST'from']) ? NULL : $_POST'from']; $yup = 'Y3J5IHNvbWUgbW9hcg=='; Rating: 5
    Projects:
    WCDDL - The Professional DDL Script
    Top Secret Project: In Development - ZOMG
    ImgTrack - Never Have Dead Images Again!

  2.   Sponsored Links

  3.     
    #2
    Just Another Coder
    Ahan this is gud share too!! JmZ, I am here learning it and saving them

  4.     
    #3
    Member
    Website's:
    Doxsters.net
    Quite nice. Btw what happened to your trusted developer rank or something?

    Need a Designer/Web Developer? Click Me

    MSN: PM me for it.
    Email(Preferred):timtamboy63@gmail.com

    "Power Corrupts. Absolute Power Corrupts Absolutely"

  5.     
    #4
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    Got taken, not really an explanation given.
    Projects:
    WCDDL - The Professional DDL Script
    Top Secret Project: In Development - ZOMG
    ImgTrack - Never Have Dead Images Again!

  6.     
    #5
    Member
    Website's:
    Doxsters.net
    That sucks, you definitely deserve it. Had a falling out with an admin or something?

    Need a Designer/Web Developer? Click Me

    MSN: PM me for it.
    Email(Preferred):timtamboy63@gmail.com

    "Power Corrupts. Absolute Power Corrupts Absolutely"

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. Free Contact Form Lite
    By Jesse in forum Useful Sites
    Replies: 1
    Last Post: 30th Dec 2009, 08:50 PM
  5. Free Contact Form
    By johnny in forum Webmaster Discussion
    Replies: 1
    Last Post: 2nd Dec 2009, 03:35 PM

Tags for this Thread

BE SOCIAL