From 030b9346bf68a7a9ba33d381de55c5b66a7fe767 Mon Sep 17 00:00:00 2001 From: Hassan <43174720+hassanrafi39@users.noreply.github.com> Date: Fri, 29 Mar 2019 04:18:59 +0600 Subject: [PATCH] html form introduction. (#29545) Little bit of introduction of forms. --- guide/english/php/forms/index.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/guide/english/php/forms/index.md b/guide/english/php/forms/index.md index 8bd6eb76e2c..65bff6a3068 100644 --- a/guide/english/php/forms/index.md +++ b/guide/english/php/forms/index.md @@ -5,5 +5,20 @@ title: Forms Forms are a way for users to enter data or select data from the webpage. Forms can store data as well as allow the information to be retrieved for later use. +To make a form to work in languages like PHP you need some basic attributes in html. In most cases PHP uses 'post' and 'get' super global variables to get the data from form. + +#### Example + +```html + + +
+
+
+
+ + +``` + +The 'method' attribute here tell the form the way to send the form data. Then the 'action' attribute tell where to send form data to proccess. Now the 'name' attribute is very important and it should be unique because in php the value of the name work as the identity of that input field. #### More Information: -