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

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    Thanks for those read this message,if can please give some guidelines...

    I am going to set a cookies to user browser, what i am going to "input" the value into cookies is something like "option1=yes,option2=yes,option3=no.."and so on.

    The questions are, can i set the cookies with a very long "string", let say 20 options. If yes, will it need others function or object to pull the cookies? What function to use, so that i can split the value from the cookies value....

    I hope someone can help me this.......thanks.

    ------------------
    Kmf165
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    17
    Rep Power
    0
    Yes, you will need the explode(). Maybe someone else can give you help on that though, because I can't.
  4. #3
  5. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <<
    Yes, you will need the explode().
    >>

    yea, you can do splitting the cookie value using explode()..

    eg:

    <?
    $values=explode(",",$cookie);

    for($a=0;$a<count($values);$a++){
    echo "Option values are:".$values[$a];
    }
    ?>




    ------------------
    SR -
    webshiju.com

    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. cant delete cookies random errors
    By toxical in forum PHP Development
    Replies: 2
    Last Post: November 26th, 2003, 05:16 AM
  2. Clearing all cookies php script - HowTo?
    By fordfasterr in forum PHP Development
    Replies: 8
    Last Post: October 24th, 2003, 09:40 AM
  3. Problem with lwp and cookies
    By vinaykakade in forum Perl Programming
    Replies: 1
    Last Post: August 13th, 2003, 10:07 AM
  4. Problems setting cookies with a path and domain
    By IBBoard in forum PHP Development
    Replies: 4
    Last Post: July 2nd, 2003, 03:03 PM
  5. AOL cookies?
    By cfthong in forum PHP Development
    Replies: 0
    Last Post: August 18th, 2000, 10:59 AM

IMN logo majestic logo threadwatch logo seochat tools logo