Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-17-2012, 04:26 PM   #1
Rockhound
Confirmed User
 
Industry Role:
Join Date: Jan 2003
Posts: 334
Contact page scripts

Hi I'm looking for a good, hopefully free, contact page script that turns the form input into an email that is sent to my email.

I would like it to be easily integrated into my design as well and not some white page with the form

Thanks
Rockhound is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2012, 04:35 PM   #2
fatfoo
ICQ:649699063
 
Industry Role:
Join Date: Mar 2003
Posts: 27,763
Maybe this will help:

Input Type: email
The email type is used for input fields that should contain an e-mail address.

Example
Define a field for an e-mail address (will be automatically validated when submitted):

E-mail: <input type="email" name="usremail">
__________________
Send me an email: [email protected]
fatfoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2012, 04:37 PM   #3
AutumnBH
Confirmed User
 
AutumnBH's Avatar
 
Industry Role:
Join Date: Oct 2012
Location: Spamville
Posts: 294
PHP Code:
<?php

// @author Autumn@BHW

if($_POST['posted'] == 'yes') {
    
$name    $_POST['name'];
    
$email   $_POST['email'];
    
$subject $_POST['subject'];
    
$message $_POST['message'];
    
$message "$message - sent via online contact form";

    
$contact_form_content "<br /><br /><br /><b>Thank you for your message.  We'll get back to you as soon as possible!</b><br /><br /><br />
    Name: 
$name<br />
    Email: 
$email<br />
    Subject: 
$subject<br />
    Message: 
$message<br />
    <br />
    <br />
    <br />
    <br />"
;
    
    
$headers "From: $name <$email>\r\n";
    
    
$send_to '[email protected]';

    
mail($send_to$subject$message$headers);


} else {
    
$contact_form_content '<form method="POST" action="contact.html">
                <input type="hidden" name="posted" value="yes" />
                <table width="80%" cellpadding="5" cellspacing="5" class="contact_form">
                    <tr>
                        <td width="26%">Full Name:</td>
                        <td width="74%"><input type="text" size="60" name="name" /></td>
                    </tr>
                    <tr>
                        <td>Email address:</td>
                        <td><input type="text" size="60" name="email" /></td>
                    </tr>
                    <tr>
                        <td>Subject: </td>
                        <td><input type="text" size="60" name="subject" /></td>
                    </tr>
                    <tr>
                        <td>Your message:</td>
                        <td><textarea name="message" rows="10" cols="50"></textarea></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td><input type="submit" value="Send message" /></td>
                    </tr>
                </table>
            </form>'
;

}

echo 
$contact_form_content;


?>
AutumnBH is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2012, 05:04 PM   #4
Rockhound
Confirmed User
 
Industry Role:
Join Date: Jan 2003
Posts: 334
Quote:
Originally Posted by AutumnBH View Post
PHP Code:
<?php

// @author Autumn@BHW

if($_POST['posted'] == 'yes') {
    
$name    $_POST['name'];
    
$email   $_POST['email'];
    
$subject $_POST['subject'];
    
$message $_POST['message'];
    
$message "$message - sent via online contact form";

    
$contact_form_content "<br /><br /><br /><b>Thank you for your message.  We'll get back to you as soon as possible!</b><br /><br /><br />
    Name: 
$name<br />
    Email: 
$email<br />
    Subject: 
$subject<br />
    Message: 
$message<br />
    <br />
    <br />
    <br />
    <br />"
;
    
    
$headers "From: $name <$email>\r\n";
    
    
$send_to '[email protected]';

    
mail($send_to$subject$message$headers);


} else {
    
$contact_form_content '<form method="POST" action="contact.html">
                <input type="hidden" name="posted" value="yes" />
                <table width="80%" cellpadding="5" cellspacing="5" class="contact_form">
                    <tr>
                        <td width="26%">Full Name:</td>
                        <td width="74%"><input type="text" size="60" name="name" /></td>
                    </tr>
                    <tr>
                        <td>Email address:</td>
                        <td><input type="text" size="60" name="email" /></td>
                    </tr>
                    <tr>
                        <td>Subject: </td>
                        <td><input type="text" size="60" name="subject" /></td>
                    </tr>
                    <tr>
                        <td>Your message:</td>
                        <td><textarea name="message" rows="10" cols="50"></textarea></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td><input type="submit" value="Send message" /></td>
                    </tr>
                </table>
            </form>'
;

}

echo 
$contact_form_content;


?>
Wow thanks!
Rockhound is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2012, 05:43 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,297
lots of free ones
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2012, 05:49 PM   #6
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by Rockhound View Post
Wow thanks!
that one is full of security holes
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2012, 08:29 PM   #7
Rockhound
Confirmed User
 
Industry Role:
Join Date: Jan 2003
Posts: 334
Quote:
Originally Posted by woj View Post
that one is full of security holes
Anything better to suggest?
Rockhound is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2012, 08:31 PM   #8
Rockhound
Confirmed User
 
Industry Role:
Join Date: Jan 2003
Posts: 334
Quote:
Originally Posted by fris View Post
lots of free ones
I've checked out some but none that I found could take on the look of my site...

I was hoping somebody here would suggest one used from experience.

Thanks to all who posted
Rockhound is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2012, 09:51 AM   #9
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,297
Quote:
Originally Posted by Rockhound View Post
I've checked out some but none that I found could take on the look of my site...

I was hoping somebody here would suggest one used from experience.

Thanks to all who posted
try this

http://dev7studios.com/demo/form-producer/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2012, 10:11 AM   #10
sixsax
Confirmed User
 
Industry Role:
Join Date: Aug 2006
Location: Denmark
Posts: 213
You can modify the beginning of AutumnBHs script to disable unwanted header injection.

Code:
if($_POST['posted'] == 'yes') {
  $name = trim(preg_replace('/\s+/s', ' ', $_POST['name']));
  $email = preg_replace('/[\s<>]+/s', '', $_POST['email']);
  $subject = trim(preg_replace('/\s+/s', ' ', $_POST['subject']));

  // etc
sixsax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.