HighDots Forums  

Slight PHP Sendmail Problem

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Slight PHP Sendmail Problem in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Coxdabd
 
Posts: n/a

Default Slight PHP Sendmail Problem - 09-22-2008 , 06:29 PM






Hello there,

I have managed to find a send-mail script in PHP in order for site users to be
able to send me their comments, questions, etc. However, I receive the email
but I only receive what the user has selected in the drop down menu, I can
change this to any of the fields but my problem is, I'm wanting it to email me
ALL the fields, not just one. I've attached the following PHP code below.

I'd be very grateful if anyone could help.

Regards,

Kristopher (UK).

<?
$name = $_REQUEST['name'] ;
$message = $_REQUEST['message'] ;
$select = $_REQUEST['select'] ;

mail( "enquireys (AT) krisskerr (DOT) com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.google.co.uk" );
?>


Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Slight PHP Sendmail Problem - 09-22-2008 , 08:39 PM






<?
$message = "An email sez: ";
foreach($_POST as $key => $value) {
$message .= $key . ": " . $value;
}

mail( "enquireys (AT) krisskerr (DOT) com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.google.co.uk" );
?>

Be aware that your use of sendmail without any security measures makes you a
juicy target for email injection techniques -

http://www.nyphp.org/phundamentals/e..._injection.php


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Coxdabd" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hello there,

I have managed to find a send-mail script in PHP in order for site users
to be
able to send me their comments, questions, etc. However, I receive the
email
but I only receive what the user has selected in the drop down menu, I can
change this to any of the fields but my problem is, I'm wanting it to
email me
ALL the fields, not just one. I've attached the following PHP code below.

I'd be very grateful if anyone could help.

Regards,

Kristopher (UK).

?
$name = $_REQUEST['name'] ;
$message = $_REQUEST['message'] ;
$select = $_REQUEST['select'] ;

mail( "enquireys (AT) krisskerr (DOT) com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.google.co.uk" );
?



Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.