hi friends,

i am new to this forum. i got a problem for sending mail to checked values(check box) on the form. i enclosed the file for us. please any one check this and fix my error as soon.

Recommended Answers

All 3 Replies

Well, for starting you did not provide the file containing the form, so i am going to have to assume line 88 contains the values from the checked checkboxes: $nletter=empty($_REQUEST['news']) ? array() : (array) $_REQUEST['news']; what you need to do next is create a string from this array($nletter), then append the string to the message body.

$sNLetter = "";
foreach($nletter as $item => $news)
  $sNLetter .= "<br>$news<br>" ;

Now append the variable $sNLetter to your message => line 102: $message .= "Selected Newsletters: $sNLetter";

hi,

its working... wowwwwwwww


thank u dear. thanks a lot...

welcome !

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.