Re: Six Arrays into EMail
| From: | Data Driven Design | Date: | Sun, 25 Jun 2000 13:02:15 +0000 |
| Subject: | Re: Six Arrays into EMail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2977@lists.php.net to get a copy of this message | ||
Maybe something like this (if your arrays have equal length)
for ($x=0;$x<count($arr1);$x++) {
$mailbody .=
"$arr1[$X]\t$arr2[$X]\t$arr3[$X]\t$arr4[$X]\t$arr5[$X]\t$arr6[$X]\n";
}
mail($to,$subject,$mailbody,$xta_headers);
Data Driven Design
PO Box 1084
Holly Hill, FL 32125-1084
Phone : (904) 226-8979
URL : http://datadrivendesign.com
URL : http://rossidesigns.net
----- Original Message -----
From: Don Smith <don@newsvideo.com>
To: <php-general@lists.php.net>
Sent: Sunday, June 25, 2000 8:55 AM
Subject: [PHP-GENERAL] Six Arrays into EMail
| I've got six arrays being passed to another page via $HTTP_POST_VARS. No
| problem. However, I want to reconstruct the data within an email body just
| the way it was seen on the previous page; six fields across, each field
from
| a different array, seperated by tabs.
|
| On that previous page, the user sees a result table with five fields and
an
| INPUT field on each row. If it weren't for the INPUT field, I could simply
| build my email message body as the table was written line by line, but I
| can't do that with the INPUT field, thus I have to POST the six arrays to
| the page sending the email.
|
| Now, I want to reconstruct that table; six fields across seperated by
tabs,
| but I have six arrays from which to build it. In other words, each line of
| the email body will have one field from each of the six arrays.
|
| I probably have to have six nested loops, but I can't for the life of me
get
| that to work.
|
| Thanks,
| Don Smith
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
| For additional commands, e-mail: php-general-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|