Thread: Simple problem

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Rep Power

    Simple problem

    can $_SESSION[] be used with $_POST[] or $_GET[] ? something like.....

    $_SESSION['something'] = $_POST['somethingelse']?

    or $_SESSION[] can only be used for using simple string dynamically? like........

    $_SESSION['something'] = 'something else'? basically i have some data in dropdown list and another text field in which i store dates of my webpage's form which i want to use dynamically to another webpages and also to the database ........which is the most simple way to do it?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Dec 2004
    Rep Power
    you got PHP? Editor? browser? why not try it yourself and figure out?

    why do you question a simplest thing as variable assignment?

    Comments on this post

    • badger_fruit agrees : Although the daftest question is the one that's not asked, this question takes the biscuit
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Sep 2006
    Rep Power
    Yes, $_SESSION can store an array.

IMN logo majestic logo threadwatch logo seochat tools logo