Jump to content

Hiding A Div Cookie


robertallen

Recommended Posts

Hi all, I'm new to the forums and fairly new to PHP. I am glad I found you guys.

 

Does anyone know of a simple script that after someone signs up for a mailing list that it will store a cookie that hides the mailing list completely? (Display none?)

 

This is an external mailing list, (through the InfusionSoft) engine, but hopefully just a simple toggle of the "Sign Up Now" on our web site can just set a cookie to hide the DIV tag.

 

Is this possible?

Link to comment
https://forums.phpfreaks.com/topic/271169-hiding-a-div-cookie/
Share on other sites

I think there may bee some confussion as to what a cookie is and does. Cookies are stored, normaly, on the end users computer and cached within the browser. They are passed in the page headers, they arn't visible by default in the body of the page.

 

What exactly are you trying to do?

Link to comment
https://forums.phpfreaks.com/topic/271169-hiding-a-div-cookie/#findComment-1395128
Share on other sites

We have two blocks of content that contain mailing list forms (one is on the sidebar, and the other is in the body copy of the page) on a Wordpress system. When the user clicks submit after they input their information on the mailing list forms we want to be able to hide them from now on on their side every time they visit the site.

 

I was thinking a cookie would do this.

Link to comment
https://forums.phpfreaks.com/topic/271169-hiding-a-div-cookie/#findComment-1395176
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.