store session values in same page using php.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • A K C MOHAN
    New Member
    • Dec 2010
    • 1

    store session values in same page using php.

    I have 10 php pages, each page containing ten fields approximately. When I navigate from one page to another page like nextpage>>> & previouspage<<< . How can I store the field values using sessions in php, when he fill first page and select link next page and coming to previous page.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    If you want to store form fields in session, the form must be submitted first using Get or Post methods. Once you store these in $_SESSION you can redirect using header("locatio n: nextPage.php");

    Dan

    Comment

    Working...