In html Forms we discuss about check-boxes, buttons, text input fields,radio button and submit button behind the html documents with only one purpose to select the different user input such as names,phone number and email addresses.And we also use html form to send data to the server.A form can also used for select lists,legend, fieldset,text area and label elements.
We use the <form> tag to create html document.Here is the example
HTML Form Element Code
Example:
Your Result:
We use the <form> tag to create html document.Here is the example
HTML Form Element Code
Example:
<formg name="HTML Form" action="yourseverSideScript.php" method="post"> <input type="checkbox" />Click to Checkbox<br /> <input type="text" /> Text Area!<br /> <input type="submit" value="SUBMIT" /> </form>Here one thing is very important that i want to teach you is about action and method attribute,Actually we use these attribute to identify where send the form data for processing or (action) and how to deal with the data (method) and only by using html we caqnm not process the data by using only html ,thats why for further processing we use the PHP,Perl or other side scripting languages.So thats why the above form can not post the data.
Your Result:
Text Area!
HTML Forms _the Input Elements
The important and most useful element is the Input element and this element is use for the selection of user information.An input elements are use in many ways and its depend upon the type of attribute.we can use the html elements for the following purposes like checkboxs,radio button,text fields ,submit buttons and many more.And we discuss about all these elements in the next tutorials.
No comments:
Post a Comment