pep Posted April 17, 2008 Share Posted April 17, 2008 Hi. I'm trying to use iframe with generated html . In my example, fileB is what I want to see the iframe, and it's a generated html table, that include a text form for one of the line. This is why fileB.php has a $_POST variable. All the data in this table are depending of the SESSION variable $_SESSION['dateForUpdate']. Everything works according to my expectation with Firefox 5.0 and IE 7.0, but for other browsers (IE 6.0) I see a white empty rectangle instead of a table. Is there something I could do about it, or do I want too much for the old browser ? Would you suggest an alternative ? Thanks. // fileA.php <? ... if (isset ($_POST['newdate']) ){ $_SESSION['dateForUpdate'] = $myDate; } else { $_SESSION['dateForUpdate'] = date("Y-m-d"); } ... echo "<iframe src=\"fileB.php\" width=\"800\" height=\"300\" scrolling=\"auto\" frameborder=\"1\">"; echo "</iframe>"; ?> //fileB.php <? //----------------------------- connectDataBase(); // -- hundred of lines here -- $dateForUpdate = $_SESSION['dateForUpdate']; $qtySystems = $qtySystems(); if (isset ($_POST['butadd'])) { for ($i=0; $i < $qtySystems; $i++) { $arraySystemdetail[$i] = $_POST["col$i"] ; } updSystemDetail($arraySystemdetail,$dateForUpdate,$qtySystems); } $tablewidth = (($qtySystems + 2 ) * 100) + 80; echo "<table width=\"$tablewidth\" border=\"1\">","\n"; $bigTable = getBigTable( $dateForUpdate); printArray( $qtySystems, $bigTable); echo "</table>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/101630-php-and-iframes-with-ie60/ Share on other sites More sharing options...
bruack Posted April 18, 2008 Share Posted April 18, 2008 Is there a reason why this is being done in an IFRAME? Quote Link to comment https://forums.phpfreaks.com/topic/101630-php-and-iframes-with-ie60/#findComment-520070 Share on other sites More sharing options...
pep Posted April 19, 2008 Author Share Posted April 19, 2008 My table will have many columns, depending of the user. Also, my main page (fileA) is a 3 column display. We don't want to use 1 wide column, (except if we don't have the choice). Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/101630-php-and-iframes-with-ie60/#findComment-521210 Share on other sites More sharing options...
RichardRotterdam Posted April 19, 2008 Share Posted April 19, 2008 I don't think this is really a php issue rather a css or html thing just check out the source in your browser what goes wrong that will give you an answer to what is wrong since php is serverside there is no difference in the output in firfox or ie Quote Link to comment https://forums.phpfreaks.com/topic/101630-php-and-iframes-with-ie60/#findComment-521548 Share on other sites More sharing options...
DeanWhitehouse Posted April 20, 2008 Share Posted April 20, 2008 Try changing these echo "<iframe src='fileB.php' width='800' height='300' scrolling='auto' frameborder='1'>"; echo "<table width='$tablewidth' border='1'><br>"; Quote Link to comment https://forums.phpfreaks.com/topic/101630-php-and-iframes-with-ie60/#findComment-521641 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.