Jump to content

Recommended Posts

i think im closer to what i need, but i still have no idea how to get a cookie within and if/else code:

 

 if (cookie_name == yes) { $customize = 'user dosent have cookie named "yes" ';
}
else { $customize = 'if user has "yes" cookie they will see this message';
}

Link to comment
https://forums.phpfreaks.com/topic/132796-set-cookie/#findComment-690609
Share on other sites

Out of curiosity, are these pages using PHP?  Cause it would be so much easier, and easier for me to answer.  Example:

 

<html>
<body>

<?php
if (isset($_COOKIE["yes"]))
  echo "Cookie exists! <br />";
else
  echo "Cookie does not exist...<br />";
?>

</body>
</html>

 

yes all are in php

Link to comment
https://forums.phpfreaks.com/topic/132796-set-cookie/#findComment-690668
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.