Re: [PHP] For/Next Help Needed

2004-07-04 Thread John W. Holmes
for($z=0;$zWhat is the difference between this code and using a "foreach" command? Nothing, really. Using a foreach() simply means you don't have to keep up with the $z count variable... foreach($recipient as $email) { mail($email,$subject,$message,$headers); } -- ---John Holmes... Amazon Wishlis

Re: [PHP] For/Next Help Needed

2004-07-04 Thread mcp6453
John W. Holmes wrote: > > mcp6453 wrote: > > > I'm using Jack's PHP FormMail script, and I need to change it. I know > > very little abou PHP, but here's what I very much need to do right away. > > > > I need the script to send the same hard coded message to each of 10 > > people. All of the emai

Re: [PHP] For/Next Help Needed

2004-07-04 Thread John W. Holmes
mcp6453 wrote: I'm using Jack's PHP FormMail script, and I need to change it. I know very little abou PHP, but here's what I very much need to do right away. I need the script to send the same hard coded message to each of 10 people. All of the email addresses do not need to be in the "To" field. O