The last field we have is the text area. The text area is similar to the input field, but allows for much more text spread across multiple lines. It also allows for scroll bars.
The html code for a textarea is as follows:
<textarea name="comments" cols="45" rows="5"></textarea>
It includes the
name attribute just like all the other fields we created. It also allows you to specify the width of the text area which is represented by
cols, and the height specified by the number of
rows. In this case our text area will be five rows in height. Beyond five rows of text, the scroll bars will be enabled automatically.
The Last part of this form is our submit and reset button. The submit button will sumit the form data to our send.php Script. The reset button will empty the data inputted into the fields.
<input type="submit" name="submit" value="Submit" />
<input type="reset" name="reset" value="Reset" />