This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2004 > Simple php mail form..





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Simple php mail form..
Pickkles webforumsuser@macromedia.com

2003-11-27, 6:37 pm

Hi all,

I kneed a simple PHP mail script for the form I've setup (http://www.b3design.ch/test.html). Since I'm not the brightest with scripting, the design being more my thing, I've been struggling. All I want is that that info is sent to a pre-defined email adre
ss and that the user gets directed to a thnk you page. Could someone maybe help me out?

Thanks ;)


Alan Ames _TMM_

2003-11-27, 6:37 pm

for something prewritten that's easy to setup-

go to http://boaddrink.com -->phpformmail


quote:

> Hi all,
>
> I kneed a simple PHP mail script for the form I've setup
> (http://www.b3design.ch/test.html). Since I'm not the brightest with
> scripting, the design being more my thing, I've been struggling. All I want is
> that that info is sent to a pre-defined email adress and that the user gets
> directed to a thnk you page. Could someone maybe help me out?
>
> Thanks ;)
>
>
>



--
Team Macromedia Volunteer for Dreamweaver
Certified Dreamweaver MX Developer

yes, it's a real email address- but it's filtered to trash

gdognight

2004-02-07, 10:28 pm

This is the easiest way to do it

<?php $msg = "Contact Information\n"
$msg .= "$name\n"
$msg .= "$address\n"
$msg .= "$city\n"
$msg .= "$state\n"
$msg .= "$zip\n"
$msg .= "phone\n"
$msg .= "$email"
$mailresult = mail("glw@totalpconline.com", "A new person requests
information", "$msg", "From: \"$name\" <$email>")
?

Hope that help


gdognight

2004-02-07, 10:28 pm

This is the easiest way to do it

<?php $msg = "Contact Information\n"
$msg .= "$name\n"
$msg .= "$address\n"
$msg .= "$city\n"
$msg .= "$state\n"
$msg .= "$zip\n"
$msg .= "phone\n"
$msg .= "$email"
$mailresult = mail("glw@totalpconline.com", "A new person requests
information", "$msg", "From: \"$name\" <$email>")
?

Hope that help


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews