Results 1 to 7 of 7

Thread: Cookie me baby just one more time

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    Cookie me baby just one more time

    I plan to add a Flash intro to my site. How can I make it so on the Flash intro page, if a checkbox is checked and a form is submitted, the next time the user goes to my page it redirects to the main page instead?

    Let me quickly whip up a sample...

  2. #2

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    http://turtletips.dns2go.com:8082/new/

    So if the checkbox was selected and the form submitted, the next time somebody views flashintro.php it would instead redirect to, say, index2.php.
    Last edited by filburt1; Feb 18th, 2002 at 08:35 PM.

  3. #3

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Well I figured it out...so how could I go about listing all the cookies my domain has made?

  4. #4
    Member
    Join Date
    Jan 2002
    Location
    India
    Posts
    50
    Do you want to
    1. list the cookies that your site has EVER made during user access? OR
    2. list the cookies that are currently there on the user's PC from your site?

    If 1., then you need to keep track of that on your server (db,textfile?)

    If 2, then the variables you put in thecookie are available in $HTTP_COOKIE_VARS. Do a foreach loop.


    From the PHP manual:
    In PHP 4.1.0 and later, the $_COOKIE auto-global array will always be set with any cookies sent from the client. $HTTP_COOKIE_VARS is also set in earlier versions of PHP when the track_vars configuration variable is set.

    I think I can help if you aremore specific!
    Thanks
    hardcoder

  5. #5

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    #2 was what I wanted, thanks.

  6. #6
    Member
    Join Date
    Jan 2002
    Location
    India
    Posts
    50
    HTH. Anytime.

  7. #7

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    D'OH! My new host has PHP 4.0.3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width