Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.