HTML Form attributes: method, action, target

Form action and method attributes are used to submit data to the server side. The following examples demonstrate the use of these two attributes to submit data to an external third party application (Google). We will learn how to use PHP at the server side to process forms in module 9.

Seach (method="get")

Search Term:

Result type: Every thing Images

Seach 2 (method="get")

Search Term:

Result type:

Seach 3 (method="post")

Google does not accept the post method. So we will get an error in the result page.

Search Term: