[thelist] building a dynamic variable in php [solved]

Tom Dell'Aringa pixelmech at yahoo.com
Mon Jan 13 12:45:31 CST 2003


--- Carl J Meyer <cjmeyer at npcc.net> wrote:

> Yes, this code is a bit silly :-)  Why go to all the fuss of the
> dynamic
> variable when you're doing the mail() right there in the loop?  You
> could cut this down to:

Yes ..that was silly! I see the point now. I like the below best of
what has been suggested so I'm using that.

Thanks everyone!

> ----------------
> for($i=0; $i<=10; $i++) {
>   $body = "body of email";
>   mail($_POST[$i], "From $personA/$personB", $body, "From:
> $email\r\nReply-To: $email\r\n");
> }
> ---------------

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the thelist mailing list