[PHP] For/Next Help Needed

2004-07-04 Thread mcp6453
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. Only the

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.

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 email addresses

Re: [PHP] For/Next Help Needed

2004-07-04 Thread John W. Holmes
for($z=0;$zcount($recipient);$z++) { mail($recipient[$z],$subject,$message,$headers); } What 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) {