Results 1 to 5 of 5
Threaded View
-
10th Nov 2010, 11:35 PM #1OP(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com23: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 ?>
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: 5Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[PHP] Getting blank message from contact form
By coolboyz2323 in forum Technical Help Desk SupportReplies: 6Last Post: 30th Sep 2012, 08:03 AM -
Contact form in PHP website gives errors
By f4n3 in forum Web Development AreaReplies: 2Last Post: 3rd May 2012, 03:42 PM -
Where can I found a good contact form?
By Divvy in forum Webmaster DiscussionReplies: 9Last Post: 31st Mar 2011, 06:00 PM -
Free Contact Form Lite
By Jesse in forum Useful SitesReplies: 1Last Post: 30th Dec 2009, 08:50 PM -
Free Contact Form
By johnny in forum Webmaster DiscussionReplies: 1Last Post: 2nd Dec 2009, 03:35 PM
themaPoster - post to forums and...
Version 5.35 released. Open older version (or...