PeFo Posted June 15, 2007 Share Posted June 15, 2007 Frustrated! Developing my webshop on Mac, having it working fine on Safari, FF, Netscape. Got the input a wile ago that the Chart didn´t show up in IE. Been trying a couple of weeks now... The site is using http, html and php only. Session seems to be the problem. Reading and testing: Privacy policy required for IE. SID in URL HTML and CSS validation Been all over this forum and trying tips, but my problem persist. Just moved all session_start() to a seperate php-file that includes on all pages. But I have to wait for an IE-test, since I don´t own a windows-machine. Any one - comfort me! A testlocation for the site is at: bastebo.hopto.org/kb/ Regards PeFo Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/ Share on other sites More sharing options...
dsaba Posted June 15, 2007 Share Posted June 15, 2007 wow thats a nice description of your php/web development adventures if you want us to help, narrow down your technical problem or what you think it is, and tell us what that is, show us some code, something... And then we can help Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275553 Share on other sites More sharing options...
PeFo Posted June 15, 2007 Author Share Posted June 15, 2007 Off course! Getting tired.. The site is in frames head and main. In main a php-file reads a "database"-file puts data in a form per each product. The product form-section in a table: echo "<td><form method='post' action='head.php' target='head'>" . "<INPUT TYPE='HIDDEN' NAME='id' VALUE='" . $tab_a[$produktnamn] . " " . $forp_a[$i] . "'> <INPUT TYPE='HIDDEN' NAME='price' VALUE='" . $pris_a[$i] . "'> <INPUT TYPE='text' NAME='qty' value='1' size='2'> <INPUT TYPE='image' class='image-kop' src='kop.jpg' NAME='add' value='submit' alt='Köp'></FORM></td>"; In IE the head-frame containing the chart does not show up: <div id="huvud"> <img src="kblogo3.png" alt=""> <!-- SHART --> <?php if($cart->itemcount > 0) { ?> <div id="varukorg"><span class="green">Varukorg:</span><br> <?php if($_POST['add']) { echo "Senast ilagt:<br>"; print_r($_POST['id']); echo "..."; print_r($_POST['price']); echo " kr<br>"; } else { echo "<br><br>"; }?> <b>Varukorg total: <?php echo number_format($cart->total,0,'.',' ') . " kr<br>"; ?></b> <div class='bilder'> <a href="kassa1.php?meny=kassa" rel="self" target="main"><img src='kassa.jpg' alt='Kassa'></a> <form method='post' action='huvud.php' target='huvud'> <input type='hidden' name='empty' value='empty'> <input type='image' name='empty' value='Töm varukorgen' alt='Töm varukorgen' src='tom.jpg'/></form> </div> <?php } else {?> <div id="varukorg"><div class="rubrik">10%</div> <b>prissänkning på linoljefärg och<br> slamfärg under maj och juni!</b></div><br> <?php } ?> </div> </div> Thanks Pefo Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275567 Share on other sites More sharing options...
dsaba Posted June 16, 2007 Share Posted June 16, 2007 run some kind of test to make sure that your PHP code is being executed, if it is then php is not your problem, its the frame and correct html being rendered by IE Look at the source of your document and see if the html code you outputted with php is there or not If it is, then php has done its part of the job, whether your particular browser renders the html properly is a different story... Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275642 Share on other sites More sharing options...
soycharliente Posted June 16, 2007 Share Posted June 16, 2007 session_start() is a depreciated function. You shouldn't use it. Just create and initialize your variables. Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275657 Share on other sites More sharing options...
PeFo Posted June 16, 2007 Author Share Posted June 16, 2007 Can a site hold variables during a "session" without the php-session funktion? Or do you meen I have to use cookie? PeFo Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275910 Share on other sites More sharing options...
soycharliente Posted June 16, 2007 Share Posted June 16, 2007 Yes. Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275962 Share on other sites More sharing options...
king arthur Posted June 16, 2007 Share Posted June 16, 2007 session_start() is a depreciated function. You shouldn't use it. Just create and initialize your variables. Are you sure? Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275972 Share on other sites More sharing options...
PeFo Posted June 16, 2007 Author Share Posted June 16, 2007 I´m just thinking that I´m missing some explorer-special-treatment, since other browers is rendering the script well. They have accepted all changes I´ve done to charm explorer. Had the head-frame (chart) show SessionID for testing, and the ID-string showed first load of the site, and then got a knew value with the first -buy- klick. Normal? (Same for all browsers) Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-275982 Share on other sites More sharing options...
soycharliente Posted June 16, 2007 Share Posted June 16, 2007 session_start() is a depreciated function. You shouldn't use it. Just create and initialize your variables. Are you sure? I could swear I read to not use it. I'm looking for where, but cannot find it. EDIT: My memory has not served me. session_register() is bad. Ignore everything I said. Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-276075 Share on other sites More sharing options...
PeFo Posted June 17, 2007 Author Share Posted June 17, 2007 Obviously I´m missing something. All files that make use of the chartfunktions have: <?php include (chartfunktions.php); at the very top. The chart-funktion file have: <?php session_start(); at the very top. IE security issue? Form issue? Frame issue? (background frames is html) Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-276191 Share on other sites More sharing options...
king arthur Posted June 17, 2007 Share Posted June 17, 2007 What are you using to test the page? It's possible, although unlikely, that the browser has security settings set so that it does not accept the session cookie. If this is the case and you have session.use_only_cookies set, then you will lose the session between pages. Also I think to include a file you need the syntax: include ("chartfunktions.php"); Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-276275 Share on other sites More sharing options...
PeFo Posted June 17, 2007 Author Share Posted June 17, 2007 Hm.. have to check the use-cookie-only. That is an php.ini setting, right? I´m not familiar with changing php-settings, but I´ll try. Can I do that temporarely with a function? Like "in this session use only SID in header" Sloppy syntax in my message. It´s correct in the files. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-276308 Share on other sites More sharing options...
dsaba Posted June 18, 2007 Share Posted June 18, 2007 include 'charfunktions.php'; will suffice if it is in the same directory Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-276615 Share on other sites More sharing options...
PeFo Posted June 19, 2007 Author Share Posted June 19, 2007 Ok, problem located. It´s IE that´s not making use of submit-image: <INPUT TYPE='image' class='image-kop' src='Submit.jpg' NAME='add' value='Submit' alt='Submit'> Happy for any suggestions that helps me have an image instead of the not-quite-as-good-looking standard botton. PeFo Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-277525 Share on other sites More sharing options...
soycharliente Posted June 19, 2007 Share Posted June 19, 2007 1. Use type="submit". 2. Use CSS to set the width, height, and background-image of the button. Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-277540 Share on other sites More sharing options...
PeFo Posted June 19, 2007 Author Share Posted June 19, 2007 Thank you everybody. PeFo Quote Link to comment https://forums.phpfreaks.com/topic/55773-explorer-and-session-false/#findComment-277557 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.