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
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Approach and Philosophy of On baking technology
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mushroom cultivation and it's methods.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
A comparative study of natural language inference in Swahili using monolingua...
NewMind AI Weekly Chronicles - August'25-Week II
Heart disease approach using modified random forest and particle swarm optimi...
Empathic Computing: Creating Shared Understanding
Approach and Philosophy of On baking technology
TLE Review Electricity (Electricity).pptx
Getting Started with Data Integration: FME Form 101
Spectral efficient network and resource selection model in 5G networks
Digital-Transformation-Roadmap-for-Companies.pptx
Mushroom cultivation and it's methods.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Group 1 Presentation -Planning and Decision Making .pptx

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