PHP setcookie help please?

Jonathan

New member
Ok well I'm learning a lot about PHP but I haven't really ventured into the cookie area yet.

I need a really simple script.

I need a drop down menu, and a checkbox, and a submit button.
first of all the drop down menu will have choices, and when you make a choice and click submit, it redirects you based on your choice.

in addition to that, if the checkbox is checked, it needs to place a cookie on their browser..
I don't know how cookies work, but is it possible to set like a Cookie name, and a value to the cookie? :S because if it works like that.. I also want it to delete the entire cookie if the box IS NOT checked.

now the final thing.
I need another script to check for the cookie.
it needs to check if the cookie exists, and preform an action based on the cookie VALUE

thanks :D
 
Back
Top