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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 16:00:02 2026 UTC