SlideShare a Scribd company logo
Processing HTML FORM
Author:- Subhasis
CMC
The form code looks as like below
Output of the code will be
html form tags
Form Tags                                                Output

<input type = "text" name = "name"/>

<input type="radio" name ="gender" value ="m“/>

<input type="CHECKBOX" name="age" value ="Y" checked/>

<SELECT name = "education">
<option selected value=“pg">P.Graduate</option>
</SELECT>

<input type="submit" name="submit" value="submit">

<TEXTAREA name = "aboutu" rows ="5" cols ="28"
></TEXTAREA>
Main form tag


• Method =“post” – This is the way of processing our user
  filled data into the form. Instead of „POST‟ we can use
  „GET‟.
• GET – when we use get method the data processed will
  be visible. The amount of data is to be sent is limited
• POST – when we use POST method the data processed
  will be not visible. The amount of data is to be sent is not
  limited.
Continue

• When we process the form the html sends the data to file which is in
  action tag. Here when the form will process it will sends to
  “formfill.php”.
• We need some php code to get those values which will be sent by the
  form tag .
• We have three types.
  ▫ $_GET = we used to get the values from html form when method is get
  ▫ $_POST = we used to get the values from html form when method is
    post
  ▫ $_REUQEST = it works on both .
PHP code to get the form values
• In PHP the $_GET,$_POST & $_REQUEST are
  special array in PHP.
• It collect the information which filed has collected
  the values .
• Simply there is no value about the fields on which
  there is no values entered by the user.
• To check that use the step by step tutorial. I will use
  $_POST for this what ever you want you can refer
  else you can refer what I am referring.
Checking the Special array $_POST
• Step -1 :- write the html file with form as below.
                                 Next step is to write a
                                 php code for processing,
                                 the name will be in
                                 action tag as below. Here
                                 my php file name is
                                 “test.php”.
                                 Let‟s write that
Continue ….
• Step – 2 :- writing the php file “test.php”
What is $_POST,$_GET & $_REQUEST ?
• There are three special global arrays in PHP.
 ▫ $_POST
 ▫ $_GET
 ▫ $_REQUEST
• When ever you submit any data to get those
  value you can use any one of the above array.
• $_POST is more robust than               $_GET,
  $_REQUEST is combined both of them.
Cont’d……
• $_GET is not secured .
• $_GET is not capable to send large amount of
  data
• $_POST is secured and able to send unlimited
  amount of data.
• So $_POST is more preferable.
Let’s receive data sent by HTML form
• To fetch the data from form we have to specify
  name for each element of the form.
• Once you do that any data you will send from
  FORM it will be fetch by the special array
  $_GET & $_POST.
• To reuse it you can store it to some variable and
  do what ever else you want to do.
An example(form code)
PHP code to process
Form validation
Ad

Recommended

Php, mysq lpart1
Php, mysq lpart1
Subhasis Nayak
 
Class 6 - PHP Web Programming
Class 6 - PHP Web Programming
Ahmed Swilam
 
PHP Loops and PHP Forms
PHP Loops and PHP Forms
M.Zalmai Rahmani
 
Loops PHP 04
Loops PHP 04
mohamedsaad24
 
PHP Basic & Variables
PHP Basic & Variables
M.Zalmai Rahmani
 
Php Loop
Php Loop
lotlot
 
Php workshop L03 superglobals
Php workshop L03 superglobals
Mohammad Tahsin Alshalabi
 
Php workshop L04 database
Php workshop L04 database
Mohammad Tahsin Alshalabi
 
PHP Variables and scopes
PHP Variables and scopes
sana mateen
 
php basics
php basics
Anmol Paul
 
PHP Tutorials
PHP Tutorials
Yuriy Krapivko
 
Control Structures In Php 2
Control Structures In Php 2
Digital Insights - Digital Marketing Agency
 
Dev traning 2016 basics of PHP
Dev traning 2016 basics of PHP
Sacheen Dhanjie
 
Web technology html5 php_mysql
Web technology html5 php_mysql
durai arasan
 
Basics PHP
Basics PHP
Alokin Software Pvt Ltd
 
Phphacku iitd
Phphacku iitd
Sorabh Jain
 
Php Tutorial
Php Tutorial
pratik tambekar
 
PHP Workshop Notes
PHP Workshop Notes
Pamela Fox
 
PHP-Part4
PHP-Part4
Ahmed Saihood
 
Php Unit 1
Php Unit 1
team11vgnt
 
Chapter 02 php basic syntax
Chapter 02 php basic syntax
Dhani Ahmad
 
Using PHP
Using PHP
Mark Casias
 
Introduction to PHP
Introduction to PHP
Devshri Pandya
 
Php
Php
Ancy raju
 
Php variables (english)
Php variables (english)
Mahmoud Masih Tehrani
 
Php a dynamic web scripting language
Php a dynamic web scripting language
Elmer Concepcion Jr.
 
PHP-Part3
PHP-Part3
Ahmed Saihood
 
Php
Php
Shyam Khant
 
Advanced php
Advanced php
hamfu
 
Identifying Web Servers: A First-look Into the Future of Web Server Fingerpri...
Identifying Web Servers: A First-look Into the Future of Web Server Fingerpri...
Jeremiah Grossman
 

More Related Content

What's hot (20)

PHP Variables and scopes
PHP Variables and scopes
sana mateen
 
php basics
php basics
Anmol Paul
 
PHP Tutorials
PHP Tutorials
Yuriy Krapivko
 
Control Structures In Php 2
Control Structures In Php 2
Digital Insights - Digital Marketing Agency
 
Dev traning 2016 basics of PHP
Dev traning 2016 basics of PHP
Sacheen Dhanjie
 
Web technology html5 php_mysql
Web technology html5 php_mysql
durai arasan
 
Basics PHP
Basics PHP
Alokin Software Pvt Ltd
 
Phphacku iitd
Phphacku iitd
Sorabh Jain
 
Php Tutorial
Php Tutorial
pratik tambekar
 
PHP Workshop Notes
PHP Workshop Notes
Pamela Fox
 
PHP-Part4
PHP-Part4
Ahmed Saihood
 
Php Unit 1
Php Unit 1
team11vgnt
 
Chapter 02 php basic syntax
Chapter 02 php basic syntax
Dhani Ahmad
 
Using PHP
Using PHP
Mark Casias
 
Introduction to PHP
Introduction to PHP
Devshri Pandya
 
Php
Php
Ancy raju
 
Php variables (english)
Php variables (english)
Mahmoud Masih Tehrani
 
Php a dynamic web scripting language
Php a dynamic web scripting language
Elmer Concepcion Jr.
 
PHP-Part3
PHP-Part3
Ahmed Saihood
 
Php
Php
Shyam Khant
 

Viewers also liked (20)

Advanced php
Advanced php
hamfu
 
Identifying Web Servers: A First-look Into the Future of Web Server Fingerpri...
Identifying Web Servers: A First-look Into the Future of Web Server Fingerpri...
Jeremiah Grossman
 
jQuery: Events, Animation, Ajax
jQuery: Events, Animation, Ajax
Constantin Titarenko
 
Cross platform php
Cross platform php
Elizabeth Smith
 
PHP Advanced
PHP Advanced
Noveo
 
Accessible dynamic forms
Accessible dynamic forms
Dylan Barrell
 
RedHat-System Administration I - RH124
RedHat-System Administration I - RH124
Nikola Tokić
 
Knolx j query-form-validation-slides
Knolx j query-form-validation-slides
Knoldus Inc.
 
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Chris Tankersley
 
HTML5 & WAI-ARIA Forms with jQuery Validation
HTML5 & WAI-ARIA Forms with jQuery Validation
pauljadam
 
Php Security Workshop
Php Security Workshop
Aung Khant
 
PHP Security Tips
PHP Security Tips
Chris Tankersley
 
OWASP App Sec US - 2010
OWASP App Sec US - 2010
Aditya K Sood
 
Cinematic UX Design
Cinematic UX Design
Dave Kelleher
 
LAMP Management with Virtualmin
LAMP Management with Virtualmin
Joe Ferguson
 
CSS3 and jQuery
CSS3 and jQuery
psophy
 
PHP
PHP
sometech
 
A brief look inside UML
A brief look inside UML
Yoan-Alexander Grigorov
 
Effective communication
Effective communication
hussulinux
 
Apache Web Server Setup 2
Apache Web Server Setup 2
Information Technology
 
Advanced php
Advanced php
hamfu
 
Identifying Web Servers: A First-look Into the Future of Web Server Fingerpri...
Identifying Web Servers: A First-look Into the Future of Web Server Fingerpri...
Jeremiah Grossman
 
PHP Advanced
PHP Advanced
Noveo
 
Accessible dynamic forms
Accessible dynamic forms
Dylan Barrell
 
RedHat-System Administration I - RH124
RedHat-System Administration I - RH124
Nikola Tokić
 
Knolx j query-form-validation-slides
Knolx j query-form-validation-slides
Knoldus Inc.
 
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Chris Tankersley
 
HTML5 & WAI-ARIA Forms with jQuery Validation
HTML5 & WAI-ARIA Forms with jQuery Validation
pauljadam
 
Php Security Workshop
Php Security Workshop
Aung Khant
 
OWASP App Sec US - 2010
OWASP App Sec US - 2010
Aditya K Sood
 
LAMP Management with Virtualmin
LAMP Management with Virtualmin
Joe Ferguson
 
CSS3 and jQuery
CSS3 and jQuery
psophy
 
Effective communication
Effective communication
hussulinux
 
Ad

Similar to Php, mysq lpart4(processing html form) (20)

Working with data.pptx
Working with data.pptx
SherinRappai
 
Php forms and validations by naveen kumar veligeti
Php forms and validations by naveen kumar veligeti
Naveen Kumar Veligeti
 
forms.pptx
forms.pptx
asmabagersh
 
PHP - Introduction to PHP Forms
PHP - Introduction to PHP Forms
Vibrant Technologies & Computers
 
2-Chapter Edit.pptx debret tabour university
2-Chapter Edit.pptx debret tabour university
alemunuruhak9
 
Lecture2_IntroductionToPHP_Spring2023.pdf
Lecture2_IntroductionToPHP_Spring2023.pdf
ShaimaaMohamedGalal
 
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
cpbloger553
 
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
cpbloger553
 
Lecture7 form processing by okello erick
Lecture7 form processing by okello erick
okelloerick
 
Php Tutorial
Php Tutorial
Dr. Ramkumar Lakshminarayanan
 
Introduction to php web programming - get and post
Introduction to php web programming - get and post
baabtra.com - No. 1 supplier of quality freshers
 
Web Development Course: PHP lecture 2
Web Development Course: PHP lecture 2
Gheyath M. Othman
 
PHP fundamnetal in information technology CHapter -02.pptx
PHP fundamnetal in information technology CHapter -02.pptx
worldchannel
 
Web Application Development using PHP Chapter 5
Web Application Development using PHP Chapter 5
Mohd Harris Ahmad Jaal
 
J query post method in php
J query post method in php
Samir Patel
 
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
berihun18
 
Chapter 6 Getting Data from the Client (1).pptx
Chapter 6 Getting Data from the Client (1).pptx
AhmedKafi7
 
GET and POST in PHP
GET and POST in PHP
Vineet Kumar Saini
 
Web app development_php_07
Web app development_php_07
Hassen Poreya
 
A179178417_21_2025_PHP Get and Post.pptx
A179178417_21_2025_PHP Get and Post.pptx
malikanuj0151
 
Working with data.pptx
Working with data.pptx
SherinRappai
 
Php forms and validations by naveen kumar veligeti
Php forms and validations by naveen kumar veligeti
Naveen Kumar Veligeti
 
2-Chapter Edit.pptx debret tabour university
2-Chapter Edit.pptx debret tabour university
alemunuruhak9
 
Lecture2_IntroductionToPHP_Spring2023.pdf
Lecture2_IntroductionToPHP_Spring2023.pdf
ShaimaaMohamedGalal
 
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
cpbloger553
 
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
cpbloger553
 
Lecture7 form processing by okello erick
Lecture7 form processing by okello erick
okelloerick
 
Web Development Course: PHP lecture 2
Web Development Course: PHP lecture 2
Gheyath M. Othman
 
PHP fundamnetal in information technology CHapter -02.pptx
PHP fundamnetal in information technology CHapter -02.pptx
worldchannel
 
Web Application Development using PHP Chapter 5
Web Application Development using PHP Chapter 5
Mohd Harris Ahmad Jaal
 
J query post method in php
J query post method in php
Samir Patel
 
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
berihun18
 
Chapter 6 Getting Data from the Client (1).pptx
Chapter 6 Getting Data from the Client (1).pptx
AhmedKafi7
 
Web app development_php_07
Web app development_php_07
Hassen Poreya
 
A179178417_21_2025_PHP Get and Post.pptx
A179178417_21_2025_PHP Get and Post.pptx
malikanuj0151
 
Ad

More from Subhasis Nayak (19)

Php, mysq lpart5(mysql)
Php, mysq lpart5(mysql)
Subhasis Nayak
 
working with database using mysql
working with database using mysql
Subhasis Nayak
 
Php, mysq lpart3
Php, mysq lpart3
Subhasis Nayak
 
Jsp 01
Jsp 01
Subhasis Nayak
 
Jsp 02(jsp directives)2003
Jsp 02(jsp directives)2003
Subhasis Nayak
 
Php, mysqlpart2
Php, mysqlpart2
Subhasis Nayak
 
C:\fakepath\jsp01
C:\fakepath\jsp01
Subhasis Nayak
 
Servlet & jsp
Servlet & jsp
Subhasis Nayak
 
J2ee connector architecture
J2ee connector architecture
Subhasis Nayak
 
how to create object
how to create object
Subhasis Nayak
 
Pointer in c++ part3
Pointer in c++ part3
Subhasis Nayak
 
Pointer in c++ part2
Pointer in c++ part2
Subhasis Nayak
 
Pointer in c++ part1
Pointer in c++ part1
Subhasis Nayak
 
C++ arrays part2
C++ arrays part2
Subhasis Nayak
 
C++ arrays part1
C++ arrays part1
Subhasis Nayak
 
Introduction to network
Introduction to network
Subhasis Nayak
 
Flow control in c++
Flow control in c++
Subhasis Nayak
 
Oops And C++ Fundamentals
Oops And C++ Fundamentals
Subhasis Nayak
 
Text mode Linux Installation Part 01
Text mode Linux Installation Part 01
Subhasis Nayak
 

Recently uploaded (20)

TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
Precisely
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
Precisely
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 

Php, mysq lpart4(processing html form)

  • 2. The form code looks as like below
  • 3. Output of the code will be
  • 4. html form tags Form Tags Output <input type = "text" name = "name"/> <input type="radio" name ="gender" value ="m“/> <input type="CHECKBOX" name="age" value ="Y" checked/> <SELECT name = "education"> <option selected value=“pg">P.Graduate</option> </SELECT> <input type="submit" name="submit" value="submit"> <TEXTAREA name = "aboutu" rows ="5" cols ="28" ></TEXTAREA>
  • 5. Main form tag • Method =“post” – This is the way of processing our user filled data into the form. Instead of „POST‟ we can use „GET‟. • GET – when we use get method the data processed will be visible. The amount of data is to be sent is limited • POST – when we use POST method the data processed will be not visible. The amount of data is to be sent is not limited.
  • 6. Continue • When we process the form the html sends the data to file which is in action tag. Here when the form will process it will sends to “formfill.php”. • We need some php code to get those values which will be sent by the form tag . • We have three types. ▫ $_GET = we used to get the values from html form when method is get ▫ $_POST = we used to get the values from html form when method is post ▫ $_REUQEST = it works on both .
  • 7. PHP code to get the form values • In PHP the $_GET,$_POST & $_REQUEST are special array in PHP. • It collect the information which filed has collected the values . • Simply there is no value about the fields on which there is no values entered by the user. • To check that use the step by step tutorial. I will use $_POST for this what ever you want you can refer else you can refer what I am referring.
  • 8. Checking the Special array $_POST • Step -1 :- write the html file with form as below. Next step is to write a php code for processing, the name will be in action tag as below. Here my php file name is “test.php”. Let‟s write that
  • 9. Continue …. • Step – 2 :- writing the php file “test.php”
  • 10. What is $_POST,$_GET & $_REQUEST ? • There are three special global arrays in PHP. ▫ $_POST ▫ $_GET ▫ $_REQUEST • When ever you submit any data to get those value you can use any one of the above array. • $_POST is more robust than $_GET, $_REQUEST is combined both of them.
  • 11. Cont’d…… • $_GET is not secured . • $_GET is not capable to send large amount of data • $_POST is secured and able to send unlimited amount of data. • So $_POST is more preferable.
  • 12. Let’s receive data sent by HTML form • To fetch the data from form we have to specify name for each element of the form. • Once you do that any data you will send from FORM it will be fetch by the special array $_GET & $_POST. • To reuse it you can store it to some variable and do what ever else you want to do.
  • 14. PHP code to process