Reply to Re: Using SendMail in Forms w/PHP HTML

Your name:

Reply:


Posted by jcage on 04/29/07 16:32

I've looked at this, experimented and am confused. On form 1, the
pull down box $to variable passes data to form 2 just fine.

On form 1, I'm using joe & bob only and that info does come through
fine. On form two, I tried;

$arrEmailAddresses = array( 'joe'=>'joe@server.com',
'bob'=>'bob@server.com' ):
array_keys($arrEmailAddresses);

and leaving my TO line on the mailer portion alone:
$mail->AddAddress($to);

and get the following error message:
Mailer Error: Language string failed to load: recipients_failedjoe

I sense that I'm missing a big part of the array keys indexing but am
not sure. Somehow, the email address loaded into the array isn't
getting to the mailer portion of $to



On Apr 22, 3:49 am, shimmyshack <matt.fa...@gmail.com> wrote:

> as you do not need to send the email addresses from the browser to the
> server in order for the server to use the value - which sent the
> emails to the browser in the first place - why not have an array in
> your logic, $arrEmailAddresses = array( 'joe'=>'...@server.com',
> 'bob'=>'...@server.com' ); and simply have values joe and bob... in
> your webpage and use the posted value - provided it exists in the
> array obtianed by array_keys($arrEmailAddresses) as the index you then
> uuse to obtain the email.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация