
08-13-2011, 06:22 PM
|
|
WHT Addict
|
|
Join Date: Sep 2009
Posts: 121
|
|
looking for contact us ( free ) script ..
Hi ,
i'am looking for contact us ..
and i need some features :-
1 - check validate of some fields .
2 - captcha
3 - after the user has submit the data , i want to refer the user to another pages .
* i will use the script more than one place at the site with different fields .
thank you  and please help me .
|

08-14-2011, 01:34 AM
|
|
Temporarily Suspended
|
|
Join Date: Jul 2011
Location: East Coast
Posts: 102
|
|
http://www.jotform.com/ you can use them to make one.
|

08-14-2011, 06:19 PM
|
|
WHT Addict
|
|
Join Date: Sep 2009
Posts: 121
|
|
Quote:
Originally Posted by sam_basshost
|
hi ,
this site is very good , but i want a script file to merge it on my site page .
|

08-15-2011, 01:51 PM
|
|
One Legit Host
|
|
Join Date: Mar 2009
Location: California :-)
Posts: 8,118
|
|
|

08-15-2011, 04:06 PM
|
|
Temporarily Suspended
|
|
Join Date: Aug 2011
Location: Kaunas, Lithuania
Posts: 149
|
|
What CMS for your website do you use? If you use WP when simple contact form plugin is the best for you. Please provide what is your CMS and will give you more information on this.
|

08-15-2011, 04:47 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2009
Location: Kshatriya
Posts: 1,643
|
|
You can use this script and also you can use your own "Thank you message page"
http://www.web4future.com/easiest-form2mail.htm (Easy to integrate in your site,etc..)
|

08-15-2011, 06:04 PM
|
|
WHT Addict
|
|
Join Date: Sep 2009
Posts: 121
|
|
Quote:
Originally Posted by Vincentas
What CMS for your website do you use? If you use WP when simple contact form plugin is the best for you. Please provide what is your CMS and will give you more information on this.
|
i'am use php page " write it hands " for my web site .
Quote:
Originally Posted by DewlanceHosting
|
thank you 
|

08-16-2011, 04:27 PM
|
|
Temporarily Suspended
|
|
Join Date: Aug 2011
Location: Kaunas, Lithuania
Posts: 149
|
|
Ok, then you can try this one too: http://www.easyphpcontactform.com/
|

08-17-2011, 07:43 AM
|
|
Newbie
|
|
Join Date: Aug 2011
Posts: 10
|
|
Hi scal, you could check to http://www.redspiral.net/contact-form It is a open source and great script (very good captcha against bot) !
|

08-17-2011, 11:38 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Apr 2011
Posts: 34
|
|
try this out
I made it for some one a while ago
PHP Code:
<?php #################################################### #Copy right Sam Mottley SamMottley.co.uk # #2011-present day All rights reserved # #################################################### #################################################### #set your error styling below # #################################################### ?> <style> .error{ color: #ed6464; } </style> <?php #################################################### #set your email here # #################################################### $youremail = 'info@sammottley.co.uk'; //$email_error = 0; //$subject_error = 0; //$message_error = 0; $error = 0;
#################################################### #Check format of email function # #################################################### function check_email_address($email) { // First, we check that there's one @ symbol, // and that the lengths are right. if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters // in one section or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%& ?'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } // Check if domain is IP. If not, // it should be valid domain name if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])| ?([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; }
############################################### #Controll interface # ############################################### if (isset($_REQUEST['email'])) {//if "email" is filled out, proceed
//Get the relivent infomation $to = $youremail; $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $messageRaw = $_REQUEST['message'] ; $genralInfomation = 'Their Email Adress : ' . $email . ' There message was : ' . $messageRaw; //check validation and then error check the sending if((check_email_address($email)) && ($subject != '') && ($messageRaw != '')){ //debug mail send if(mail($to,$subject,$genralInfomation)){ echo "Mail was sent. I'll get back to you asap. Thanks"; } else { echo "Something when wrong! - Please try and re-submit the form or if you continue to get errors please contact the me at: ".$youremail; } }else{ //errors in what the user types if(check_email_address($email) == FALSE){ $error = 1; $email_error = '<div class="error">Invalid email format</div><br/>'; } if($subject == ''){ $error = 1; $subject_error = '<div class="error">Please enter a subject</div><br/>'; } if($messageRaw == ''){ $error = 1; $message_error = '<div class="error">Please enter a message</div><br/>'; } }
}else{ //if "email" is not filled out, display the form echo " <form method='post' action='" . basename($_SERVER['PHP_SELF']) . "'> <div style='width:800px'> <div style='width:50px; padding: 10px; float:left; padding-right:30px;'>Email: </div><div style='width:500px; padding: 10px;'><input name='email' type='text' style='width:350px;' /></div><br /> <div style='width:50px; padding: 10px; float:left; padding-right:30px;'>Subject: </div><div style='width:500px; padding: 10px;'><input name='subject' type='text' style='width:350px;'/></div><br /> <div style='width:50px; padding: 10px; float:left;'>Message: </div> <br /><div style='width:700px; float:right;'> <textarea name='message' rows='15' cols='40'></textarea></div><br /> <div style='width:410px; float:right;'><input type='submit' value='send'/></div> </div> </form> "; } if($error == 1){ echo " <form method='post' action='" . basename($_SERVER['PHP_SELF']) . "'> <div style='width:800px'> <div style='width:50px; padding: 10px; float:left; padding-right:30px;'>Email: </div><div style='width:500px; padding: 10px;'><input name='email' type='text' style='width:350px;' />".$email_error."</div><br /> <div style='width:50px; padding: 10px; float:left; padding-right:30px;'>Subject: </div><div style='width:500px; padding: 10px;'><input name='subject' type='text' style='width:350px;'/>".$subject_error."</div><br /> <div style='width:50px; padding: 10px; float:left;'>Message: </div> <br /><div style='width:700px; float:right;'> <textarea name='message' rows='15' cols='40'></textarea>".$message_error."</div><br /> <div style='width:410px; float:right;'><input type='submit' value='send'/></div> </div> </form> "; } ?>
Last edited by motters; 08-17-2011 at 11:44 AM.
|

08-18-2011, 03:49 PM
|
|
WHT Addict
|
|
Join Date: Sep 2009
Posts: 121
|
|
Surcouf , motters , Vincentas
Thank you 
|

08-19-2011, 06:07 AM
|
|
Newbie
|
|
Join Date: Mar 2011
Posts: 12
|
|
Sometimes it's easier and faster to write code than to use a free script.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|