Javascript is client-side. It is a completely different thing. But what you are asking for in a server-side environment makes absolutely no sense.
If you do: setcookie("foo","bar"); What you are asking for is for $foo to automatically be set to "bar" by the setcookie() call. This will not happen. If you want $foo set, set it. You have all the information. Simply do: $foo = "bar"; setcookie("foo",$foo); Making something like this automatic removes flexibility. And removing flexibility to add something that is trivial to do yourself makes no sense. You simply need to change your thinking as to how cookies work. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php