1 / 6

Chapter 3

Chapter 3. Creating Dynamic Web Sites Part 2. One Page. One page to display and handle the form. if (/* form has been submitted */) { // Handle the form } else { // Display the form }. if ($_SERVER[‘REQUEST_METHOD’]==‘POST’) { // Handle the form } else { // Display the form }.

misu
Download Presentation

Chapter 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 3 Creating Dynamic Web Sites Part 2

  2. One Page • One page to display and handle the form. if (/* form has been submitted */) { // Handle the form } else { // Display the form }

  3. if ($_SERVER[‘REQUEST_METHOD’]==‘POST’) { // Handle the form } else { // Display the form }

  4. calculator.php • Script 3.5 on page 87 • http://cscdb.nku.edu/csc301/frank/ch03/script_03_05/calculator.php • ch03\script_03_05\calculator.php

  5. STICKY FORM • Remembers how you have filled it out if the form must be resubmitted.

  6. calculator.php • Script 3.6 on pages 92-93 • http://cscdb.nku.edu/csc301/frank/ch03/script_03_06/calculator.php • ch03\script_03_06\calculator.php

More Related