|
Posted by cover on 04/30/07 13:20
On 29 Apr 2007 09:32:48 -0700, jcage@lycos.com wrote:
So the form works fine with form 1 passing to the acknowledgement form
(form 2) but somehow, I need to pick from the array, the email
addresses associated with 'joe' and 'bob' and insert those values in
the mailto line of the phpmailer script that's part of form 2.
$arrEmailAddresses = array( 'joe'=>'joe@server.com',
'bob'=>'bob@server.com' );
so the question, how can I grab only the email address from
$arrEmailAddresses array above for replacement of the $to in the line
below?
$mail->AddAddress($to);
ie: replace as follows: "if joe, then use joe@serverlcom from array"
$mail->AddAddress($arrEmailAddresses);
thanks,
John
Navigation:
[Reply to this message]
|