Presentation is loading. Please wait.

Presentation is loading. Please wait.

Doing Something with All that Data!. On Submit…the data from a form is sent to the.php file listed under action.

Similar presentations


Presentation on theme: "Doing Something with All that Data!. On Submit…the data from a form is sent to the.php file listed under action."— Presentation transcript:

1 Doing Something with All that Data!

2 On Submit…the data from a form is sent to the.php file listed under action

3  output a message or change some value on the current page  current file as the value for the action attribute  process the data in some internal way and/or you want to display results on a page different from the one on which the form itself is located…  separate file in which you have written the PHP for handling the data as the value for the action attribute

4  superglobal PHP variable  If the data has been submitted via the method post, then array’s name is…  $_POST  associative arrays  indices used to generate the array are the names of your form field elements  To access the value from a particular field of your form, you need to use its name.

5  the textbox has the name “name”  use the index value “name” to access the cell in the associative array:  $_POST['name']

6 Pulling data from the superglobals

7

8

9 You Don’t Know Where That Input Has Been! Clean it UP!

10

11

12  $variable=strip_tags($variable);


Download ppt "Doing Something with All that Data!. On Submit…the data from a form is sent to the.php file listed under action."

Similar presentations


Ads by Google