>
> I'm trying to pass a large array of strings to a Embperl document
> whose sole
> purpose is to display fatal errors.  The method errors() returns
> an array reference
> to an array that contains the following strings:
>[..]
> I've tried the following:
>
> <a
> href="http://[+$ENV{SERVER_NAME}+]/error.epl?msg=[+$a->errors()+]"
> >Errors</a>
>[..]
>
> <a
> href="http://localhost/error.epl?msg=Mail+address+error:+Missing+s
> treet+address=
> Mail+address+error:+Missing+city/province&Mail+address+error:+Inva
> lid+or+missing+
> country=Mail+address+error:+Invalid+or+missing+zip+code&Missing+or
> +invalid+home+phone+
> number=">Errors</a>
>

Embperl converts your array ref to name/values pairs. (Watch for the = and &
in the url).

If you want to transfer it as one string, just join the strings together.
e.g.

href="http://[+$ENV{SERVER_NAME}+]/error.epl?msg=[+ join (',',
@{$a->errors()}) +]"

Gerald




-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------

Reply via email to