Jump to content

php and iframes with IE6.0


pep

Recommended Posts

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>";

 

?>

Link to comment
https://forums.phpfreaks.com/topic/101630-php-and-iframes-with-ie60/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.