Webmaster Forum


Go Back   Webmaster Forum > Marketing Forums > Marketing Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Marketing Forum Marketing, branding and advertising discussions. Online and off-line marketing discussions.

Bidding Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-08-2007, 08:20 AM   #1 (permalink)
UBF
Inactive
 
UBF's Avatar
 
Join Date: 08-11-06
Posts: 217
iTrader: 0 / 0%
Latest Blog:
None

UBF is on the right pathUBF is on the right path
Send a message via Skype™ to UBF
How to use web forms?

When capturing leads I use Aweber for the job and that works just fine (besides their horrible pop-over windows 3.11 look).

But if I would want to ad a simple submission form like:

- Text field (large box for any kind of text)
- Email field (so that I can respond if necessary)

How do I do that? I don’t want to have double opt-in on a form like that and Aweber doesn’t allow for single opt-in.

I know that I might need a PHP script or similar but what do you recommend that I use and are there any free solutions that would get the job done?

All I want is an Email sent to my specified address with the text and the email that the people have entered.

I hope you can help me out. Thanks.
UBF is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-08-2007, 05:15 PM   #2 (permalink)
v7n Mentor
 
Ferre's Avatar
 
Join Date: 10-15-03
Location: Amsterdam, Netherlands
Posts: 11,398
iTrader: 0 / 0%
Ferre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest orderFerre is a web professional of the highest order
Try this one.

http://green-beast.com/blog/?page_id=71
Ferre is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-09-2007, 02:55 PM   #3 (permalink)
Contributing Member
 
Join Date: 01-23-07
Posts: 152
iTrader: 0 / 0%
Latest Blog:
None

newsaroo is liked by many
Below is a simple script validation. You must make a seperate page (e.g. mailer.php) and proecess the form using this mailer! You can in sert html below the PHP code for a thank you page. Once the php is processed the html will kick in. Hope it works. Dont forget to make a seperate page and replace all the html with the PHP. It has an auto reply included. It's nice.


<?php
// Receiving variables
@$pfw_ip= $_SERVER['REMOTE_ADDR'];
@$email = addslashes($_POST['email']);
@$name = addslashes($_POST['name']);

// Validation
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
{
die("<p align='center'><font face='Arial' size='5' color='#FF0000'>Error<br><br>Please enter a Valid Email</font></p>");
}

if (strlen($email) == 0 )
{
die("<p align='center'><font face='Arial' size='5' color='#FF0000'>Error<br><br>Please enter a Valid Email</font></p>");
}

//Sending Email to form owner
$pfw_header = "From: $email\n"
. "Reply-To: $email\n";
$pfw_subject = "Your Subject";
$pfw_email_to = "youremail@youraddress.com";
$pfw_message = "Visitor's IP: $pfw_ip\n"
. "email: $email\n";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;

//Sending auto respond Email to visitor
$pfw_header = "yourmail@yourmailaddress.com\n"
. "Reply-To: yourmail@yourmailaddress.com\n";
$pfw_subject = "yourwebsite.com";
$pfw_email_to = "$email";
$pfw_message = "Thank you for contacting your web site.com. If requested a member of managment will get back to you.\n"
. "\n"
. "Staff";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;

echo("<p align='center'><font face='Arial' size='3' color='#FF0000'>Thank you</font></p>");
?>
newsaroo is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Marketing Forums > Marketing Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP forms Foxtrck Coding Forum 15 12-05-2006 10:43 AM
forms, what to use? philipf22 Coding Forum 0 03-03-2005 10:15 AM
Forms in IE Fusion Web Design Lobby 7 06-08-2004 02:55 PM
PDF FORMS? wbstein Graphic Design Forum 9 05-05-2004 09:36 AM
Forms Pipeline-Webdesign Coding Forum 3 02-27-2004 08:57 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:22 PM.
© Copyright 2008 V7 Inc