I have an admin area where i can send emails to any selected member using using checkboxes. On submission it sends you to the next page where the email is then sent. All the emails that have been selected are then displayed
eg
mark@ntlworld.com Mail successfully sent!
uk@ntlworld.com Mail successfully sent!
The message is already built into the page so on parse the pre formatted email is sent.
what I want is contact form where I can select the members/all then on submission you are then linked to the contact form where a new subject/message can be written.
I have tried this so far within the code
print_r($_POST['email'];
produces
Array ( [0] => mark@ntlworld.com [1] => uk@ntlworld.com )
foreach($_POST['email'] as $key => $value) {
//echo "<input type='text' size ='20' name='' value = '$value'>";
}
or not echoing out within html
<input type='text' size ='20' name='' value = '<? echo $value; ?>'>
what this does it creates two seperate text boxes but what i want is one text box with all the emails selected within,
eg
<input type='text' size ='20' name='' value = 'mark@ntlworld.com;uk@ntlworld.com'>
the email separated by ;
I can then set the subject and message and sent hopefully to all selected.
any help would be greatly appreciated
thanks
roscor