To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-29-2003, 05:42 AM   #1
Studentmonster
Junior Member
 
Join Date: Oct 2003
Posts: 1
Question Email Form Help

I need a php script that can send information from a page I have to my email address?

The form on the page is called support and has the following text boxes on it labeled as:

name
email
telno
spec
problem

Can anyone help me put together a script to send the text from these fields to my email address?

Cheers

Studentmonster
Studentmonster is offline   Reply With Quote
Old 10-29-2003, 08:54 AM   #2
TheIceman5
Senior Member
 
Join Date: Jun 2003
Posts: 392
if you scrollup to the top of this page, look over to the right, theres a decent sized button named "SEARCH", click on it and type a word or 2 describing what u want to find out and it will be your best friend and tell you everything you want to know plus more.

later...

p.s. if that fails, which i dont think it will, google is your second best friend, he operates the same way, tell him what you wanna know, he will pass his knowledge to you plus more.
TheIceman5 is offline   Reply With Quote
Old 10-29-2003, 01:04 PM   #3
Elizabeth
Has a PhD in Horribleness
 
Elizabeth's Avatar
 
Join Date: Nov 2002
Location: In a meeting with the Bobs
Posts: 2,575
You can also use the PHP manual, which is quite helpful - try the PHP function mail().

-Elizabeth
Elizabeth is offline   Reply With Quote
Old 10-29-2003, 03:28 PM   #4
mcahill
Junior Member
 
Join Date: Oct 2003
Posts: 7
Mail function

Here you go. Had one open on in DW when I was reading...

Set your form action to
PHP Code:
<? PHP_SELF ?>
and use the post method...

PHP Code:
if ($_POST['Submit'] == 'Submit Doc') {
ob_start();

$name = $_POST['name'];  
$email = $_POST['email'];
$telno = $_POST['telno'];
$spec = $_POST['spec'];
$problem = $_POST['problem'];

$subject = "whatever you want the subject to be";


      
mail("youremail", "$subject", "name = $name, email = $email, telno = $telno, spec = $spec problem, = $problem, ");
           
        
        
ob_end_flush();
}
Output buffer (the ob stuff) is in there in case you want to throw in a message or redirect to another page...learn the mail() function. It is very powerful and fairly easy to use.

Last edited by mcahill; 10-29-2003 at 03:31 PM.
mcahill is offline   Reply With Quote
Old 11-04-2003, 01:29 PM   #5
andynightingale
Member
 
Join Date: Aug 2003
Location: SW London
Posts: 87
You can use phpformmail to process any forms, however many fields and send them to an email address. It is easy to set up and fairly configurable to add features if you wan't. The docs are clear.
It is the php version of the cgi formail which is used by loads of sites.

Download from
http://www.boaddrink.com/projects/phpformmail/

andy
andynightingale is offline   Reply With Quote
Reply

Bookmarks


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

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:24 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.