jdm95lude Posted December 1, 2008 Share Posted December 1, 2008 I have a form that gets sent to a script file that sets cookies then takes them to a second page that retrieves the cookies and they are able to enter in more information. Well the cookies are being set in Firefox I even go and view the cookies but they are not working in Internet Explorer 8. Any thought ideas suggestions? This is how i'm setting my cookies. $Name = $_POST['Name']; setcookie("Name", "$Name", time()+3600); How I call the cookies $Name = $_POST['Name']; <input type="text" name="Name" class="left_navbox_form_text_field" value="<?php echo "$Name";?>" /> SITE: www.18002sellhomes.com Link to comment https://forums.phpfreaks.com/topic/135015-cookies-are-net-working-in-ie/ Share on other sites More sharing options...
flyhoney Posted December 1, 2008 Share Posted December 1, 2008 $Name = $_COOKIE['Name']; <input type="text" name="Name" class="left_navbox_form_text_field" value="<?php echo "$Name";?>" /> Link to comment https://forums.phpfreaks.com/topic/135015-cookies-are-net-working-in-ie/#findComment-703184 Share on other sites More sharing options...
jdm95lude Posted December 1, 2008 Author Share Posted December 1, 2008 $Name = $_COOKIE['Name']; <input type="text" name="Name" class="left_navbox_form_text_field" value="<?php echo "$Name";?>" /> Yeah that is what I have. Sorry, it doesn't work Link to comment https://forums.phpfreaks.com/topic/135015-cookies-are-net-working-in-ie/#findComment-703193 Share on other sites More sharing options...
jdm95lude Posted December 1, 2008 Author Share Posted December 1, 2008 So this is basically what I have. It doesn't work. Page1. <form method="POST" action="test2.php"> <input name="Name" type="text" value="<?php if (empty($_POST['Name'])) echo $_POST['Name'] ?>"> <input class="button" type="submit" value="Submit"> </form> Page2. <?php $Name = $_POST['Name']; setcookie("Name", "$Name", time()+3600); header("Location:test3.php"); ?> Page3 <?php $Name = $_COOKIE['Name']; echo "$Name"; ?> Link to comment https://forums.phpfreaks.com/topic/135015-cookies-are-net-working-in-ie/#findComment-703411 Share on other sites More sharing options...
jdm95lude Posted December 1, 2008 Author Share Posted December 1, 2008 So I just ran a test on a different server using the same code. On Firefox it shows the cookies on the original server and the new server. In Internet explorer it doesnt show me the cookies when i go and look for them nor does it display them on the page. On the new server it displays them on the page but still doesn't not show the cookies in my Temporary files. Any ideas at all? I'm totally lost Link to comment https://forums.phpfreaks.com/topic/135015-cookies-are-net-working-in-ie/#findComment-703420 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.