markwjones Posted August 10, 2010 Share Posted August 10, 2010 ...anyone know anything about Internet Explorer not printing values from session variables. It works on Firefox but not on Internet Explorer. The session variable value works find on the web page but click on Print preview and it dissapears and will not print. Quote Link to comment https://forums.phpfreaks.com/topic/210353-session-variables/ Share on other sites More sharing options...
sinista Posted August 10, 2010 Share Posted August 10, 2010 could it be that the css set to SCREEN and not to PRINT, if media is all will it do both? Quote Link to comment https://forums.phpfreaks.com/topic/210353-session-variables/#findComment-1097753 Share on other sites More sharing options...
markwjones Posted August 12, 2010 Author Share Posted August 12, 2010 Hi, thanks for that but tried both print and all and both don't seem to work... It's strange as it will print values from normal variables but it won't seem to pring values from a session variable. As I said, it works fine with firefox. Do you think it is a CSS issue or Internet Explorer? Quote Link to comment https://forums.phpfreaks.com/topic/210353-session-variables/#findComment-1098637 Share on other sites More sharing options...
Alex Posted August 12, 2010 Share Posted August 12, 2010 We'll need to see relevant code. Quote Link to comment https://forums.phpfreaks.com/topic/210353-session-variables/#findComment-1098640 Share on other sites More sharing options...
markwjones Posted August 12, 2010 Author Share Posted August 12, 2010 ---- HERE IS THE PHP FILE CALLED 'member.php' ---- <?php session_start(); $member_ref = $_SESSION["member_ref"]; $ref_print = (string) $member_ref; // print text:. $font = 'fonts/arial.ttf'; // pick color for the text $fontcolor = imagecolorallocate($image, 44, 85, 177); $fontsize = 14; $x = 112; $y = 106; imagettftext($image, $fontsize, 0, 100, 100, $fontcolor, $font, $ref_print); //print Cusomter ref session variable. // png image type header("Content-Type: image/png"); // display image in png imagepng ($image); ?> --- HERE IS THE HTML FILE --- <head> <link rel="stylesheet" type="text/css" href="../main_fbl.css" media="all" /> **I Have tried with print as well. </head> <body> <img src="member.php" /> <hr style="page-break-before:always" /> </body> Quote Link to comment https://forums.phpfreaks.com/topic/210353-session-variables/#findComment-1098647 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.