Click here to learn more about Instant SSL certificates. DomainMasters.NET High Speed Web Hosting and Internet Services


hostingspeeds.com
 



Webmaster Resources
321webmaster.com


Web Directories List

Please tell us what you think about our web site, company, products, or services. If you provide us with your contact information, we will be able to reach you in case we have any questions.

This pages web form has been disabled because of some idiot spamming me with porn crap. Thanks you jerk. I do have your IP Address and it has been reported to law enforcement authorities. Have a nice time in jail arsehole, for sending me child pornography links!

Comments

< $recipientslist = array("Name 1 >< name1@yourdomain.com", "Name 2 >< name2@yourdomain.com", "Name 3 >< name3@yourdomain.com"); //Subject should be selected from a list, true or false $listofsubjects = "false"; //sub variable (only edit if above value is set to true) //define list of subjects the user can chose from $subjects = array("Subject 1", "Subject 2", "Subject 3"); //use security code feature, true or false $usesecuritycode = "true"; //use time limit feature, true or false $usetimelimit = "true"; //sub variable (only edit if above value is set to true) //set time delay if using time limit feature $delay = "360"; //redirect to another page after successful submission, true or false $redirectonsuccess = "false"; //sub variable (only edit if above value is set to true) //set address of page to redirect to after successful submission, can be relative $redirecturl = "http://www.domainmasters.net/"; //allow user to get a copy of the message sent to them, true or false $copyme = "true"; //store submissions in a database, true or false $store = "false"; //sub variables (only edit if above value is set to true //MySQL Host $host = "localhost"; //MySQL User $user = "user"; //MySQL Pass $pass = "pass"; //MySQL Database Name $dbname = "database"; //Table Name $tablename = "ContactFormLog"; //Date Format, see http://www.php.net/date $dateformat = "d/m/Y H:i:s"; //user has to preview before can submit, true or false $preview = "true"; //remember user's name and e-mail, true or false $rememberdetails = "true"; //sub variables (only edit if above value is set to true //Days to remember details for $rememberdays = "7"; //----- End Config -----\\ //----- Start Set PHP Variables -----\\ ini_set("sendmail_path", $mail_path); ini_set("magic_quotes_gpc", 1); //----- End Set PHP Variables -----\\ //----- Start Functions -----\\ //function to check email format function check_email($str) { if(ereg("^.+@.+\\..+$", $str)) return 1; else return 0; } //function to get submitted values function get_values($slashes,$decode) { global $userName; global $userEmail; global $userSubject; global $userMessage; global $userCopyMe; global $userEmailTo; global $rememberdetails; $userName = htmlentities(strip_tags($_POST['userName'])); $userEmail = htmlentities(strip_tags($_POST['userEmail'])); $userSubject = htmlentities(strip_tags($_POST['userSubject'])); $userMessage = htmlentities(strip_tags($_POST['userMessage'])); $userCopyMe = htmlentities(strip_tags($_POST['userCopyMe'])); $userEmailTo = htmlentities(strip_tags($_POST['userEmailTo'])); if ($slashes == "1") { $userName = stripslashes($userName); $userEmail = stripslashes($userEmail); $userSubject = stripslashes($userSubject); $userMessage = stripslashes($userMessage); $userCopyMe = stripslashes($userCopyMe); $userEmailTo = stripslashes($userEmailTo); } if ($decode == "1") { $userName = html_entity_decode($userName); $userEmail = html_entity_decode($userEmail); $userSubject = html_entity_decode($userSubject); $userMessage = html_entity_decode($userMessage); $userCopyMe = html_entity_decode($userCopyMe); $userEmailTo = html_entity_decode($userEmailTo); } } //function to clear submitted values function clear_values() { global $userName; global $userEmail; global $userSubject; global $userMessage; global $userCopyMe; global $userEmailTo; global $rememberdetails; if ($rememberdetails != "true") { $userName = ""; $userEmail = ""; } $userSubject = ""; $userMessage = ""; $userCopyMe = ""; $userEmailTo = ""; } //function to display message function display_messages() { global $message; global $messagenoterror; $y = "0"; if (!empty($message) && $messagenoterror != "1") { echo "The following errors were encountered when trying to process your message:
"; } while ($y < 10) { if (!empty($message[$y])) { if ($messagenoterror != "1") { echo " - "; } echo $message[$y]."
"; } $y++; } } //----- End Functions -----\\ //----- Start Set Variables -----\\ $mail_subject = $_POST['userSubject']; $submittime = $_SESSION['submittime']; $currenttime = time(); $allowedtime = $currenttime - $delay; $timeleft = $submittime - $allowedtime; $p = "0"; get_values(1,1); $EmailContent = "Name:\n".$userName."\n\n"."Email:\n".$userEmail."\n\n"."Subject:\n".$userSubject."\n\n"."Message:\n".$userMessage."\n\n"."User Agent:\n".$_SERVER["HTTP_USER_AGENT"]."\n\n"."User IP:\n".$_SERVER["REMOTE_ADDR"]; //----- End Set Variables -----\\ //check if form submitted if ($_POST){ //----- Start Error Checking -----\\ //check to see if fields already been checked if ($_POST['previewdone'] != "1") { //check if all fields filled in if (!$_POST['userName'] || !$_POST['userEmail'] || !$_POST['userSubject'] || !$_POST['userMessage']){ $message[$p] = "All required fields not filled in."; $p++; get_values(1,0); $notcomplete = "1"; } //check if email is in valid format if(check_email($_POST['userEmail']) == "0" && $_POST['userEmail']){ $message[$p] = "Invalid e-mail address."; $p++; get_values(1,0); } //check if security code is correct if($_POST['userSecurityCode'] != base64_decode($_POST['SecurityCode']) && $usesecuritycode == "true" && $notcomplete != "1"){ $message[$p] = "Wrong security code"; $p++; get_values(1,0); } //check that x seconds has passed if($submittime > $allowedtime && $usetimelimit == "true"){ $message[$p] = "You are trying to send messages too often, please try again after ".$timeleft." seconds"; $p++; get_values(1,0); } } //----- End Error Checking -----\\ //----- Start Set Cookies ------\\ if ($rememberdetails == "true") { $cookietime = time()+60*60*24*$rememberdays; //set cookie to remember userid for x days setcookie("userName", $_POST['userName'], $cookietime, "/"); //set cookie to remember password for x days setcookie("userEmail", $_POST['userEmail'], $cookietime, "/"); } //----- End Set Cookies ------\\ //----- Start Final Check & Process Form ------\\ if ($preview == "true" && $_POST['previewdone'] == "1") { $continue = "1"; } elseif ($preview == "true" && $_POST['previewdone'] != "1") { $continue = "0"; } else { $continue = "1"; } //check to see whether there are any errors, if no then continue if (empty($message) && $continue == "1" && empty($_POST['edit'])){ //check to see whether the user can pick the recipitent, if yes get recepitent chosen if ($listofrecipients == "true") { $explodedresult = explode(" >< ", $recipientslist[$_POST['userEmailTo']]); $mail_to = $explodedresult[1]; } //Check to see if mail sent correctly get_values(1,0); if(mail($mail_to,$mail_subject,$EmailContent,"From:".$userName." <".$userEmail.">")){ //check to see if user wants a copy of the message, if yes send them one if ($_POST['userCopyMe'] == "1"){ mail($_POST['userEmail'],"Copy of sent message: ".$mail_subject,$EmailContent,"From:".$userName." <".$userEmail.">"); } //check to see if user wants to store submissions if ($store == "true") { //connect to db $connect = @mysql_connect($host,$user,$pass); //select db $selectdb = @mysql_select_db($dbname); //get variables get_values(1,1); $userAgent = $_SERVER["HTTP_USER_AGENT"]; $userIP = $_SERVER["REMOTE_ADDR"]; $userTime = date($dateformat); //insert data $sql = "INSERT INTO `$tablename` (`ID`, `userName`, `userEmail`, `userSubject`, `userMessage`, `userCopyMe`, `userEmailTo`, `userAgent`, `userIP`, `userTime`) VALUES ('', '$userName', '$userEmail', '$userSubject', '$userMessage', '$userCopyMe', '$userEmailTo', '$userAgent', '$userIP', '$userTime')"; $result = @mysql_query($sql); } //tell user message sent successfully $message[0] = "Thank you, your message has been sent."; $messagenoterror = "1"; //clear form values clear_values(); //store submit time for use with time limit feature $_SESSION['submittime'] = time(); //check to see if user should be redirected if ($redirectonsuccess == "true") { ?> here to send your message via your default e-mail program."; $messagenoterror = "1"; get_values(1,0); } $formsent = "1"; } } else { if ($rememberdetails == "true") { $userName = $_COOKIE['userName']; $userEmail = $_COOKIE['userEmail']; } } //----- End Final Check & Process Form ------\\ ?>
"> Name


E-mail


Recipient
< ", $recipientslist[$i]); ?>

Subject


Message


Send me a copy of the message?




"> Name


E-mail


Recipient


Subject


Message


Type the code you see on the image below


Security Code

Check the box if you wish to be sent a copy of this message
/>

" />


 

Send mail to support [at] domainmasters.net with questions or comments about this web site.
Copyright © 2004-2006 DomainMasters.NET High Speed Web Hosting and Internet Services
GeoTrust, mySQL, APACHE, Microsoft FrontPage, PHP4, RedHat Linux


hostingspeeds.com

Web Directories List