demosthenes.info

A blog by Dudley Storey on , , , , , , and anything else that strikes his fancy.

featured articles

popular favourites

HTML Forms: Other input types

Less-commonly used input types include the following:

input valuepurpose
hiddenContains a value, in the form <input type="hidden" value="x" />. Must be placed between opening and closing <form> tags. Used to pass a value to the form parser that the user does not enter themselves. Commonly used in CGI scripts (for example, to pass the eMail address to send the parsed form information to) or multi-part forms.
imageA substitute for the submit type, replacing the submit button with an image. Takes the form <input type="image" src="image.gif" />
passwordUsed to obscure the entry of text from "over-the-shoulder" social hackers. Visually replaces text entered into the text box with dots or asterisks. Does not encode or encrypt the entered text - it is still sent as plaintext over the Internet.
fileAllows the user to choose a file from their own system to upload to the site. Automatically generates a text entry area together with a "Browse" button that will open the client’s file browser.

web developer guide

featured comment

by JoelB in Goodbye, JQuery Validation: HTML5 Form Errors With CSS3

what i'm reading

A Storm of Swords: A Song of Ice and Fire: Book Three
A Storm of Swords: A Song of Ice and Fire: Book Three

what i'm watching

Californication: The Third Season
Californication: The Third Season

what i'm playing

Mass Effect 3 Collector's Edition
Mass Effect 3 Collector's Edition

what i'm hearing

Dub FX
Dub FX

blogs

podcasts

no ads ever

This blog is free of advertising, and always will be.

creative commons licensed

The content of this blog is free to use in whatever way you wish under the Creative Commons license.