|
-
Feb 18th, 2002, 12:05 PM
#1
Thread Starter
Member
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...
-
Feb 18th, 2002, 12:08 PM
#2
Thread Starter
Member
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.
-
Feb 18th, 2002, 08:35 PM
#3
Thread Starter
Member
Well I figured it out...so how could I go about listing all the cookies my domain has made?
-
Feb 20th, 2002, 02:21 PM
#4
Member
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
-
Feb 20th, 2002, 06:33 PM
#5
Thread Starter
Member
#2 was what I wanted, thanks.
-
Feb 20th, 2002, 07:36 PM
#6
Member
HTH. Anytime.
-
Feb 20th, 2002, 09:21 PM
#7
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|