RE: [PHP] What's wrong with this code please?

2004-02-24 Thread Chris W. Parker
Donpro on Tuesday, February 24, 2004 9:52 AM said: > $emails = > array("[EMAIL PROTECTED]","[EMAIL PROTECTED]",[EMAIL PROTECTED]); > $addresses = explode(",",$emails); for ($i=0; $i < count($addresses); >$i++) { echo $i . ': ' . $addresses[$i] . ''; >if ($i =

Re: [PHP] What's wrong with this code please?

2004-02-24 Thread Adam Bregenzer
On Tue, 2004-02-24 at 12:51, Donpro wrote: > $emails = array("[EMAIL PROTECTED]","[EMAIL PROTECTED]",[EMAIL PROTECTED]); > $addresses = explode(",",$emails); > for ($i=0; $i < count($addresses); $i++) { >echo $i . ': ' . $addresses[$i] . ''; >if ($i == count($addresses) - 1) > $form['

RE: [PHP] What's wrong with this code please?

2004-02-24 Thread Sam Masiello
If you want to see the contents of an array, use the print_r function: http://www.php.net/print_r HTH! --Sam Donpro wrote: > $emails = > array("[EMAIL PROTECTED]","[EMAIL PROTECTED]",[EMAIL PROTECTED]); > $addresses = explode(",",$emails); > for ($i=0; $i < count($addresses); $i++) { >e

[PHP] What's wrong with this code please?

2004-02-24 Thread Donpro
$emails = array("[EMAIL PROTECTED]","[EMAIL PROTECTED]",[EMAIL PROTECTED]); $addresses = explode(",",$emails); for ($i=0; $i < count($addresses); $i++) { echo $i . ': ' . $addresses[$i] . ''; if ($i == count($addresses) - 1) $form['recipient'] .= $addresses[$i]; else $form['rec