adv Posted February 9, 2008 Share Posted February 9, 2008 hello i have a problem ... i have some input text <input name="about" value="" type="text" > <input name="about1" value="" type="text" > and in that file i`m trying to store the value of the text with cookie i`ve tried <?php $about=$_POST['about']; $about1=$_POST['about1']; if (!empty($about)&&!empty($about1)){ setcookie("abb1",$about,time()+3600); setcookie("abb2",$about1,time()+3600); } ?> and in another page i tried to request that cookie like this <?php $info1=$_COOKIE['abb1']; $info2=$_COOKIE['abb2']; ?> i tried to send the cookie to an email <?php $message="info1:$info1\ninfo2:$info2\n"; mail("email@em.com","test",$message); but sometimes it doesn`t work it sends the cookie empty info: info1: and i have another question does $_SESSION and $_COOKIE conflict?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.