php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3314 MAXLENGTH
Submitted: 2000-01-25 19:29 UTC Modified: 2000-01-25 20:25 UTC
From: prosblee at prolinux dot co dot kr Assigned:
Status: Closed Package: Other
PHP Version: 3.0.14 OS: Win 98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: prosblee at prolinux dot co dot kr
New email:
PHP Version: OS:

 

 [2000-01-25 19:29 UTC] prosblee at prolinux dot co dot kr
I'am working with php3 and mysql. I took problem. I set  the length of field. but deference of English and Korean take some problem.
  Korean language counters two character per one letter. What is problem is bellow
exam) I set Address Line is varchar(30) in mysql.
php3:
.......
    <$STDFONT_B>$Address $Line 2 : <$STDFONT_E>
    <INPUT TYPE=TEXT NAME=ptaddr2 SIZE=25 MAXLENGTH=15
     VALUE=\"$ptaddr2\">
    <BR>
..........


I have to set MAXLENGTH 15, but In English the length of line input 15 char.
When the MAXLENGTH is set 30, Korea Language is cut.

What do I solve this problem. 
PLEASE PLEASE give me answer

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-25 20:25 UTC] mrobinso at cvs dot php dot net
This is not bug.
Have a look at javascript, detecting character-sets/encoding.

Closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 01:01:30 2024 UTC