Kaylyn's Session Array DEMO

Page 1

       Array
(
    [city] => Grand Rapids
    [county] => Kent
    [count] => 0
)


Go To Page 2

PLEASE NOTE: This page does not contain a form (there is no POST of GET). However, the script IS populating variables and passing those variables from one page to the next via the SESSION array.

Also, the count variable is being declared by a SESSION ternary operator.

This shows how variables can be passed from one page to another via SESSION arrays