Saturday, February 21, 2015

Form (Upload and Text area)



Upload Form 


Syntax of upload form

<form method=”post/get” action=”URL/file”>
<input type=”file” attributes>
</form>

Attributes for upload form are method, action, and enctype.



Text Area


Syntax of text area

<form method=”post/get” action=”URL/file”>
<textarea attributes>…</textarea>
</form>

Attributes for text area are name, rows, cols, wrap, and disable.




Compare and contrast upload and text area

Upload allows your visitors to send files to your web server using standard forms.
Text area is graphical user interface that can create a multi-line text input form control.
Both of them send file and information to the server.


Give some tips on how to make a form

You have to make sure to double check your work. Copy and paste can be useful when you know the fuctions of each form tag well.



Friday, February 13, 2015

Form (Radio Button, Checkbox, Drop-list box or Selection List, Submit)




Radio button

<form method=”post/get” action”URL/file”>
<input type=”radio” attributes>
</form>

In a graphical user interface, any of a set of options from which only one may be selected at a given time.




Check box

<form method=”post/get” action”URL/file”>
<input type=”checkbox” attributes>
</form>

The open squares in front of set of opinions that may be ticked to select an option or function.



Drop down list

<form method=”post/get” action=”URL/file”>
<select attribute>
<option attribute>…</option>
</select>
</form>

A menu of options that appears below the item when the computer user clicks on it.




Submit

<form method="post/get" action="URL/file">
<input type="submit" value="name">
</form>

It allows you to send the information of the choice.






Compare and contrast Radio Button, Check boxes, and Selection.

Radio button, check box, and selection include a set of options so user can make a choice.
Radio button and selection allows only one choice, but check box allows multiple choice.
Selection allows pre-select value which is commonly chose by users.
Selection may includes more set of options because it shows its option when user clicks on it.



Give some tips on how to make a form.

The most important thing is do not confusing the input elements of form tag. Make your purpose clear so you will not struggle to choose input elements. After that, you have to double check your work.