Hello everyone!

I'm having a odd issue. I'm not sure of the Mason version I'm running
(corporate server), but maybe someone can help me anyway. If I post a
form to a web service and if there is a missing field or another error,
it returns a query string with one or more fields called 'err'. I setup
the <%args> section with an undefined array call @err.

Then, I check if @err is defined and I walk through it, dumping the
message to the browser.

The weird thing is that the "-- " always dumps to the browser, even when
there is no error. Is @err a special array or something? I created a
scalar variable and assigned the @err to it and it displayed a '1'. Does
anyone know how it is getting one element? The query string contains
nothing.

Thanks!

-- 
Doug Dawson
Application Developer
Physicians Mutual Insurance Company
(402) 930-2432

I would love to change the world, but they won't give me the source
code.


##########################################

<%args>
$result => undef
@initVal => undef
@err => undef
</%args>
<%perl>

my $errors; #Catch-all scalar for all errors returned by form handler.
This will be formatted and dumped above form.

if(@err){
  foreach (@err) {
    $errors.= "-- " . uri_unescape($_) . "<br>\n";
  }
}

____________________________________________________________
This message and any attachments are confidential, may contain privileged
information, and are intended solely for the recipient named above.
If you are not the intended recipient, or a person responsible for
delivery to the named recipient, you are notified that any review,
distribution, dissemination or copying is prohibited.  If you have
received this message in error, you should notify the sender by return
email and delete the message from your computer system.
begin:vcard 
n:Dawson;Doug
tel;work:402.930.2432
x-mozilla-html:FALSE
url:http://www.physiciansmutual.com
org:;ETG
adr:;;2600 Dodge St.;Omaha;NE;68131;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Programmer
fn:Doug Dawson
end:vcard

Reply via email to