Form Overview

What are forms?

  • Forms allow us to get data from users

inline


How do forms work?

inline


Form Structure

<form action="http://www.example.com/subscribe.php" method="get">
  <p>This is where the form controls will appear.</p>
</form>


Form Attributes

  • action: Required, the url on the server that will receive the information from the form

  • method: Either a get or post

    • Use get when the data being sent to server is not senstive information and is relatively small (search form)
    • Use post when sending senstive data and when sending large amounts of data (registration form)