Form is divided into 2 which is 1. Action (script)
2. Method (post or get)
Compare Get and Post!!
What is INPUT? (script is <input type= "text" name)
--Text
--Password
--Radio
--Checkbox
WHY we must use this different input into form?-----this is because user friendly, to avoid client key in wrong data and also consistent data.
i quite confuse with two these type of input~~
Example of Radio button
Example of Checkbox
What is Select?
1. select one only
2.multiple select
Text area normally is used for address, comment and description.
Submit & Reset
<input type = “submit" value= "Go!”>
<input type = “reset" value= "Clear”>
Exercise in class!!!
1. add a drop down lists with name ="cars" to the form. Include the following option = "Volvo", "Ford", "Fiat", and "Audi".
ans:
<p>select your car
<select name = "cars">
<option value= "volvo">Volvo
<option value= "ford">Ford
<option value= "fiat">Fiat
<option value= "audi">Audi
</select>
</p>



No comments:
Post a Comment