Hi all,
I'm using a cookie like this: <<setcookie("cookiename1","$domin","timeset()+1800");>>
at the top of my script. <<$domin>> is a text field that belongs to a post form. This
form is in <<function one();>> well, i try use <<$domin>> in <<function two();>>
writing <<$_COOKIE['cookiename1'];>> Here you are the code:
<?
setcookie("cookiename1","$domin","timeset()+1800");
$cookiename1=$domin;
echo $cookiename1; // here it works
?>
--- HTML code ---
<?
function one(){
?>
--- HTML code ---
<input name="domin" type="text" size="40" maxlength="63">
--- HTML code ---
<?
}
function two(){
$othervar=$_COOKIE['cookiename1'];
echo $othervar; // here it doesn't work
?>
--- HTML code ---
<?
}
?>
--- HTML code ---
What am I doing wrong? Any tips? Any Ideas?
Thanks for help
Peace & Love
skitum