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...
Printable View
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...
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.
Well I figured it out...so how could I go about listing all the cookies my domain has made?
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
#2 was what I wanted, thanks. :)
HTH. Anytime. :)
D'OH! My new host has PHP 4.0.3 :(