![]() |
Limiting Input Field Lengths |
Post Reply ![]() |
Author | |
alldayangler ![]() Newbie ![]() Joined: 14-March-2007 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 14-March-2007 at 10:18am |
I need to modify PC so that there is a limit on the number of characters that can be entered into a customers name and address fields when ordering. Currently it allows more characters than the accounting program we use allows. How do I do this? Your help is appreciated.
|
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
You would need to edit login.asp. There are two areas you may want to modify: 2. To restrict the length of data customers can actually type, you would need to add the MAXLENGTH parameter to the corresponding form fields. These form fields start around line 1250. Here is a sample of Maxlength: <INPUT TYPE=TEXT NAME="fieldname" MAXLENGTH=20> This will only allow the user to type 20 characters in the field. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |