Posted by Jerry Stuckle on 09/16/07 17:43
RageARC wrote:
> I want to show the user a list of emails and the user must have the
> ability to select which ones he wants. Multiple selections must be
> allowed. Any way I can do this? In PHP I want to do:
>
> foreach ($_POST['contacts'] as $contact) {
> // code...
> }
>
> But using Checkboxes doesn't work, I've tried putting them with the
> same name but all that appears is a string of the LAST selected
> checkbox :S. Help?
>
Just remember - don't put the email address itself in your form - use
id's, etc. instead. And validate your data.
Spammers just love when you put the email address in a form field. And
they'll love you, also, right up to the time your site gets shut down.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|