Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 5th Apr 2009, 07:01 PM   #1
Warrior Member
 
Join Date: 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default
How to direct values from php textboxes in a form to a email account?
Share on: 
fb share twitter share gplus share more share

I have a web form at designed in php. Can you provide me with a simple code to connect a textbox to an email account.

xckoza is offline  
Unread 6th Apr 2009, 12:42 PM   #2
HSpin Design
 
Join Date: 2009
Location: Boston, MA
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to direct values from php textboxes in a form to a email account?
Share on: 
fb share twitter share gplus share more share

Very simple sendmail.php script. Point to it from your form:
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "yourname@example.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>

Also a third party solution might be-

Email Me Form™ - HTML Forms, Web Forms, PHP Forms

HSpin Design - Unique Web Development / Design for the Internet Marketing Entrepreneur.

Coming Soon - IM Web Apps
SEO_BOS is offline  
Closed Thread


Bookmarks

Tags
account, direct, email, form, php, textboxes, values


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

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




All times are GMT -6. The time now is 08:28 AM.