Is it possible to set the value of a dropdownlist to a session variable by using php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rose merry
    New Member
    • May 2015
    • 14

    #1

    Is it possible to set the value of a dropdownlist to a session variable by using php?

    I am trying to store the selected value of an item in my drop down list into a session variable after selecting it and pressing a button to add it to a session variable. My question is,how to display the selected item of dropdownlist on the dropdownlist of next page
  • computerfox
    Contributor
    • Mar 2010
    • 276

    #2
    If you are using cookies, it would be $_COOKIE['cookie_name'];
    If you are using sessions, it would be $_SESSION['session_name'];
    Can you verify that the data has been set?

    Comment

    Working...