/    Sign up×
Community /Pin to ProfileBookmark

Do you know the maximum number of form elements that can be used in a web page?

I’m trying to just send a form that has many checkboxes and hiddens objects to another page and try to read they value, but i get an error that says “Internet Explorer cannot display the webpage” so i was wondering if the problem was that there were too many form elements, is there is a maximum number of form elements that can be used in a web page? does anyone know? also, does any one know if the name of a form object has to have a format? i some times uses input objects with “-” in the name an also receive error messages. ?

Thank you!

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@KDLAJun 18.2007 — Without your code, it's hard to tell what the problem is. To my knowledge, there isn't a cap on form elements. Your display problem could be attributed to some missing tag or a javascript/script call that is not functioning correctly.

You should use names with a meaning, and for reference to the <label> tag you are hopefully using for accessibility reasons. Those names shouldn't contain spaces or punctuation.

Reference: http://www.w3.org/TR/html4/interact/forms.html#h-17.9
Copy linkTweet thisAlerts:
@felgallJun 18.2007 — As long as you use method="POST" you can have as many form fields as you like. Using method="GET" you will run into the URL length limit if you have too many fields. How many then depends on their names and the amount of input - one textarea with a couple of thousand characters of input would be too many fields.
Copy linkTweet thisAlerts:
@lupix_qroauthorJun 18.2007 — Thank you!!!

That was exactly the problem, i didn't specify any method :o , as soon as i put method="POST" my page started working fine. Thank you! ?
×

Success!

Help @lupix_qro spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...