473,394 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Max # of letters in an input form

kestrel
1,071 Expert 1GB
what do i use to only let a user type a certain # on letters in an input field?
Sep 23 '06 #1
1 5063
ronverdonk
4,258 Expert 4TB
Use the maxlength attribute of the <input tag. This example accepts 10 characters in the input field.
[HTML]<input name="a" maxlength="10" />[/HTML]

Ronald :cool:
Sep 23 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Johannes Nix | last post by:
Hello, yesterday I met a cute person (after my dance class) who told me about an interesting experiment regarding cognition. People were told to read a typed text; However, in every word in the...
7
by: Miguel Orrego | last post by:
I have a form which people use to register in a database. The form passes the input data to an asp page that then updates the database. The thing is, people often don't bother starting their...
4
by: Carlos Marangon | last post by:
Hello! People go to sign my guestbook and wrote all text in capital letters. Did you know any script that shows an window alert when one types the second capital letter? Best regards,
3
by: Jay Best | last post by:
Hi there The story is as follows: I write up some pretty detailed reports on people, and what I am wanting to do is speed up the process as a proportion of the reports that I am writing are...
4
by: Kun | last post by:
I have the following if statement that checks if a form is empty: if form.has_key("date") and form.value != "": date=form.value else: print "ERROR: No date entered!" raise Exception I...
0
by: euniceno1 | last post by:
the problem is to count the letters and sequence from a file. the fist thing of my code is to read file and in the main function i create is to count the characters and sequence by using 2 dimension...
5
by: yoshimishu | last post by:
i have to create two text boxes. If i fill in first text box the second textbox shoud automatically display the number of letters displayed in first text box. If the number of letters in first text...
7
by: ccarter45 | last post by:
I need to count the number of letters in a string, disregarding case. It needs to use these two methods. What's wrong? import java.util.Scanner; public class CountLetters { public static void...
0
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
Can you make the MaskedTextbox to only allow certain letters e.g. 10:11 A (Only allow A and P as input) ?? I don't want any other letters than A or P to appear in the text box. I mean no...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.