I'm having a hell of a trubble with this. There does not seem to be much in the way of PHP cookie examples around, so I must be missing somethin very basic. Here's the code...
This gets form input in the form of two arrays, stick 'em together, then sets the cookie...
You are essentially trying to execute the function named by feed_cookie. Say feed_cookie had the contents of 'hi_all' then you'd be executing the function hi_all().
Assuming that you haven't done anything radically different with your php.ini file, simply delete the line I highlighted above. PHP automatically assigns $feed_cookie to $HTTP_COOKIE_VARS['feed_cookie']. That's why I love the language
Bookmarks