Get latest news and Web Designing tutoria

Friday, 29 May 2015

PHP and the Post Attribute of HTML Forms

<FORM NAME ="form1" METHOD ="POST" ACTION = "">

The ?Submit1=Login part from the previous section is now gone! That is because we used POST as the method. Using POST means that the form data won't get appended to the address in the address bar for all to see. We'll use both POST and GET throughout the book. But it depends on the project: if the data is not sensitive then use GET, otherwise use POST.

Another important attribute of the Form tag is Action. Without Action, your forms won't go anywhere! We'll see how this works in the next part.

0 comments:

Post a Comment