JoeZ Posted February 28, 2006 Share Posted February 28, 2006 I'm trying to use this to send email through a php script to multiple recipients. The problem is that when I use this, the values are resubmitted for each option. For example, if I select all three, the address generated will be [a href=\"http://websiteurl.com/formmail.php?recipient=email1@sos.com&recipient=email2@sos.com&recipient=email3@sos.com\" target=\"_blank\"]http://websiteurl.com/formmail.php?recipie...=email3@sos.com[/a]Instead, i want it to do this:[a href=\"http://websiteurl.com/formmail.php?recipient=email1@sos.com\" target=\"_blank\"]http://websiteurl.com/formmail.php?recipient=email1@sos.com[/a], email2@sos.com, email3@sos.comHere is a snippit[code] <form action="formmail.php" method=post> <select name="recipient" size="3" multiple id="recipient"> <option value="email1@sos.com">User Name 1</option> <option value="email2@sos.com">User Name 2</option> <option value="email3l@sos.com">User Name 3</option> </select><input type=submit></form>[/code]Thanks for the help. Quote Link to comment Share on other sites More sharing options...
doctor_james Posted March 4, 2006 Share Posted March 4, 2006 change the name property of your select element to this : name="recipient[]" .hope it helps .Regards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.