SlideShare a Scribd company logo
PHP FORMS
PHP
•                             HTML
                                            PHP
              HTML
    <html>
    <body>
    <form action="register.php" method="POST">
               input type="text" name="name" />
                input type="text" name="age" />
    <input type="submit" />
    </form>
    </body>
    </html>
•            HTML                          text field)
     submit button)                      submit
    register.php
register.php"
<html>
<body>
                 php echo $_POST["name"]; ?>.<br />
          php echo $_POST["age"]; ?>
  body>
</html>




               POST                POST["name"]
 POST["age"]                          GET             GET
      POST
GET
•         GET                      HTTP GET
       GET                                    URL
        HTTP GET
                                  GET
    <html>
    <body>
    <form action="register.php" method="GET">
              input type="text" name="name" />
               input type="text" name="age" />
    <input type="submit" />
    </form>
    </body>
    </html>
URL                                      register.php"
• www.phpstreet.com/register.php?name=pong&age=28

•

•    register.php                                     GET


•                  php echo $_GET["name"]; ?><br />
•           php echo $_GET["age"]; ?>

•                            GET                URL

                                   URL
                       URL
REQUEST
•      REQUEST
                   GET, $_POST              COOKIE

•

           php echo $_REQUEST["name"]; ?>.<br />
    php echo $_REQUEST["age"]; ?>
POST
•            POST                                HTTP POST
            HTTP GET


                                            POST
    <html>
    <body>
    <form action="register.php" method="POST">
              input type="text" name="name" />
               input type="text" name="age" />
    <input type="submit" />
    </form>
    </body>
    </html>
register.php
                   POST

•              php echo $_POST["name"]; ?><br />
•       php echo $_POST["age"]; ?>

•           POST

More Related Content

PPTX
PHP Forms PHP 05
ODP
Form Processing In Php
PPT
Chapter 07 php forms handling
PDF
Making web forms using php
PPTX
PHP Variables & Comments 01
PDF
Forms and Databases in PHP
PDF
5.1 html lec 5
PDF
Getting Information through HTML Forms
PHP Forms PHP 05
Form Processing In Php
Chapter 07 php forms handling
Making web forms using php
PHP Variables & Comments 01
Forms and Databases in PHP
5.1 html lec 5
Getting Information through HTML Forms

What's hot (20)

PDF
4.1 html lec 4
PDF
Web Development Course: PHP lecture 2
PPTX
Php Form
PDF
Php workshop L03 superglobals
PDF
Php workshop L04 database
PPTX
Html and Xhtml
PPTX
FYBSC IT Web Programming Unit III Document Object
PPSX
DIWE - Coding HTML for Basic Web Designing
PDF
1.1 html lec 1
PPTX
Html 5 Forms
DOCX
HTML Web design english & sinhala mix note
PPTX
Web page concept final ppt
PDF
Javascript
PPTX
FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
TXT
Pp checker
PDF
Practical PHP by example Jan Leth-Kjaer
PPTX
HTML5 Web Forms
PDF
Html5 appunti.0
RTF
Site Mocikut
DOC
Html basics 10 form
 
4.1 html lec 4
Web Development Course: PHP lecture 2
Php Form
Php workshop L03 superglobals
Php workshop L04 database
Html and Xhtml
FYBSC IT Web Programming Unit III Document Object
DIWE - Coding HTML for Basic Web Designing
1.1 html lec 1
Html 5 Forms
HTML Web design english & sinhala mix note
Web page concept final ppt
Javascript
FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media
Pp checker
Practical PHP by example Jan Leth-Kjaer
HTML5 Web Forms
Html5 appunti.0
Site Mocikut
Html basics 10 form
 
Ad

Viewers also liked (20)

PPT
Php forms
PDF
Deliver Files With PHP
DOCX
Script login form php
PPT
Using arrays with PHP for forms and storing information
PDF
03 the htm_lforms
PPT
Geek Austin PHP Class - Session 4
DOC
S.G.Balaji Resume
PPTX
PPT
PHP - Introduction to PHP Cookies and Sessions
PDF
Memphis php html form processing with php
PPTX
PHP Cookies and Sessions
PDF
PHP Files: An Introduction
PPT
PHP Cookies, Sessions and Authentication
PDF
Network Simulation NS3
PDF
ns-3: History and Future
PDF
Creating And Consuming Web Services In Php 5
DOC
Creating a Simple PHP and MySQL-Based Login System
PDF
Building Topology in NS3
PDF
Tutorial ns 3-tutorial-slides
PDF
ns-3 Tutorial
Php forms
Deliver Files With PHP
Script login form php
Using arrays with PHP for forms and storing information
03 the htm_lforms
Geek Austin PHP Class - Session 4
S.G.Balaji Resume
PHP - Introduction to PHP Cookies and Sessions
Memphis php html form processing with php
PHP Cookies and Sessions
PHP Files: An Introduction
PHP Cookies, Sessions and Authentication
Network Simulation NS3
ns-3: History and Future
Creating And Consuming Web Services In Php 5
Creating a Simple PHP and MySQL-Based Login System
Building Topology in NS3
Tutorial ns 3-tutorial-slides
ns-3 Tutorial
Ad

Similar to 3 php forms (20)

KEY
Introduction to php
PPT
Lecture7 form processing by okello erick
PPTX
Working with data.pptx
PDF
Html , php, mysql intro
PDF
PHP an intro -1
PDF
Web app development_php_07
PPTX
Web Application Development using PHP Chapter 5
PPTX
BITM3730 10-25.pptx
PPTX
BITM3730 10-24.pptx
PPTX
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
DOCX
Php forms and validations by naveen kumar veligeti
PPTX
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
PPTX
forms.pptx
PPTX
Web Techniques like Cookies and Sessions
PDF
How to Build a Web App (for Non-Programmers)
PDF
Noah Brier: How to build web apps
PDF
SULTHAN's - PHP MySQL programs
PDF
Form handling in php
PDF
Tutorial_4_PHP
Introduction to php
Lecture7 form processing by okello erick
Working with data.pptx
Html , php, mysql intro
PHP an intro -1
Web app development_php_07
Web Application Development using PHP Chapter 5
BITM3730 10-25.pptx
BITM3730 10-24.pptx
5. Formshcfsjhfajkjsfjsjfjksafjsfjkjfhjsafjsajkgfjskafkjas.pptx
Php forms and validations by naveen kumar veligeti
Unit - III.pptxbgffhjxfjdfjfgjnsnsnshdhsjsksjsjsjsjsjsjsjsjsldksk
forms.pptx
Web Techniques like Cookies and Sessions
How to Build a Web App (for Non-Programmers)
Noah Brier: How to build web apps
SULTHAN's - PHP MySQL programs
Form handling in php
Tutorial_4_PHP

Recently uploaded (20)

PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Transforming Manufacturing operations through Intelligent Integrations
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
REPORT: Heating appliances market in Poland 2024
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
SAP855240_ALP - Defining the Global Template PUBLIC.pdf
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PPTX
CroxyProxy Instagram Access id login.pptx
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced IT Governance
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
PDF
Electronic commerce courselecture one. Pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Big Data Technologies - Introduction.pptx
Transforming Manufacturing operations through Intelligent Integrations
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
20250228 LYD VKU AI Blended-Learning.pptx
REPORT: Heating appliances market in Poland 2024
NewMind AI Weekly Chronicles - August'25 Week I
GamePlan Trading System Review: Professional Trader's Honest Take
Review of recent advances in non-invasive hemoglobin estimation
SAP855240_ALP - Defining the Global Template PUBLIC.pdf
madgavkar20181017ppt McKinsey Presentation.pdf
CroxyProxy Instagram Access id login.pptx
Advanced Soft Computing BINUS July 2025.pdf
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced IT Governance
NewMind AI Monthly Chronicles - July 2025
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
Electronic commerce courselecture one. Pdf

3 php forms

  • 2. PHP • HTML PHP HTML <html> <body> <form action="register.php" method="POST"> input type="text" name="name" /> input type="text" name="age" /> <input type="submit" /> </form> </body> </html> • HTML text field) submit button) submit register.php
  • 3. register.php" <html> <body> php echo $_POST["name"]; ?>.<br /> php echo $_POST["age"]; ?> body> </html> POST POST["name"] POST["age"] GET GET POST
  • 4. GET • GET HTTP GET GET URL HTTP GET GET <html> <body> <form action="register.php" method="GET"> input type="text" name="name" /> input type="text" name="age" /> <input type="submit" /> </form> </body> </html>
  • 5. URL register.php" • www.phpstreet.com/register.php?name=pong&age=28 • • register.php GET • php echo $_GET["name"]; ?><br /> • php echo $_GET["age"]; ?> • GET URL URL URL
  • 6. REQUEST • REQUEST GET, $_POST COOKIE • php echo $_REQUEST["name"]; ?>.<br /> php echo $_REQUEST["age"]; ?>
  • 7. POST • POST HTTP POST HTTP GET POST <html> <body> <form action="register.php" method="POST"> input type="text" name="name" /> input type="text" name="age" /> <input type="submit" /> </form> </body> </html>
  • 8. register.php POST • php echo $_POST["name"]; ?><br /> • php echo $_POST["age"]; ?> • POST