So my cookies look like so
Name: lang
Content: et
and
Name: lang
Content: en
and
Name: lang
Content: fi
every language select deletes old and replaces with new one
I need to get my script working with every cookie content different text
$array = array();
$array[] = 'blabla 1';
$array[] = 'blabla 2';
$array[] = 'blabla 3';
$array[] = 'blabla 4';
$random = rand(0, count($array));
echo $array[$random];
and if there is no cookies, then it will show content:et arrays
sowh4t 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.