form field lengths exceeded

  • Thread starter Thread starter Doug H
  • Start date Start date
D

Doug H

Hi, I am not sure where to post this. I'll give it a go
here first.

I have a Perl.cgi name/address form on my web site. The
fields have a 41 character limit because I import the data
directly into quickbooks and that 41 character limit is
set by quickbooks on some data fields. If it is more than
41, quickbooks will not accept the data import.

The 41 char. limit works fine for most people in the world
but I have some Japanese customers that are able to exceed
the 41 chars. They sometimes are able to submit up 49
characters in some of these form fields.
The form data arrives in English but somehow they are able
to exceed the max field lengths I set.

Does anyone know how to make foreign languages such as
Japanese adhere to the form field length maximum in
internet explorer?

This is a weird one, any help is apprecaited.
 
somehow they are able to exceed the max field lengths I set.

Sounds like you might be measuring bytes instead of characters.
Japanese uses multibyte characters so if you are giving
them room for 41 characters you actually may be allowing them
to enter 82 bytes (or more).
 
Robert,
i am not sure how else to measure the field length. This
is just standard HTML stuff.

here is an actual line from a cgi script.

<td align="left">
<input type=text name="$fieldNames{'company'}"
maxlength="41" size="41"
value="$orderFormFields{'company'}->{'default'}"
vcard_name=vCard.Company>
</td></tr>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top