Jump to content

Recommended Posts

bcz if i put that, that stupid ass unidefined index error will pop up.

 

 

all i want to know is how the helld o i make this shorter? why do i have to all this .... stupid isset is a stupid function burn in hell!

 

if(isset($_COOKIE['skinid']) && $_COOKIE['skinid'] == 'default')
{
echo '<style type="text/css" media="all">@import url(1.css);</style>';
}
if(isset($_COOKIE['skinid']) && $_COOKIE['skinid'] == 1)
{
    echo '<style type="text/css" media="all">@import url(2.css);</style>';
}
if(!isset($_COOKIE['skinid']))
{
    echo '<style type="text/css" media="all">@import url(2.css);</style>';
}

 

why do i have to use this only way it works w/o unidenified index errors.

isset returns a boolean, if you want to check the data in a cookie do this:

 

if(isset($_COOKIE['skinid']) && $_COOKIE['skinid'] == "heelo")

 

Will work, as it first checks if the cookie isset if it is then it tests the data in that cookie.

isset returns a boolean, if you want to check the data in a cookie do this:

 

if(isset($_COOKIE['skinid']) && $_COOKIE['skinid'] == "heelo")

 

Will work, as it first checks if the cookie isset if it is then it tests the data in that cookie.

 

why the hell . i dont want to use isset.. while i code my website i aint putting isset around all ym stuff that's ridicilous is there another way so that IT DOESNT POP UP UNIDENTIFIED INDEX ERRORS PLZ

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.