bonjour, j'ai besoin de votre aide.. normalement je code en flash mais j'ai decidé d'utiliser le php car je fais un outl de gestion avec spaw2.
j'ai un ficher principal appelé pour le moment test.php qui contient:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample AP Div Page</title>
<style type="text/css">
<!--
#topframe {
position:absolute;
left:0px;
top:0px;
width:1024px;
height:135px;
z-index:1;
border: 0px;
}
#menuframe {
position:absolute;
left:0px;
top:135px;
width:1024px;
height:110px;
z-index:2;
border: 0px;
}
#contentframe {
position:absolute;
left:0px;
top:245px;
width:1024px;
height:466px;
z-index:3;
border: 0px;
}
#bottomframe {
position:absolute;
left:0px;
top:711px;
width:1024px;
height:57px;
z-index:4;
border: 0px;
}
-->
</style>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<div id="topframe">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1024','height','135','title','topframe','src','../cpanel_top','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../cpanel_top' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1024" height="135" title="topframe">
<param name="movie" value="../cpanel_top.swf">
<param name="quality" value="high">
<embed src="../cpanel_top.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1024" height="135"></embed>
</object></noscript>
</div>
<div id="menuframe">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1024','height','100','title','menuframe','src','../general','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../general' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1024" height="100" title="menuframe">
<param name="movie" value="../general.swf">
<param name="quality" value="high">
<embed src="../general.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1024" height="100"></embed>
</object></noscript>
</div>
<div id="contentframe">
<?php include ("general_banner.php"); ?>
</div>
<div id="bottomframe">
<img src="../cpanel_bottom.gif" alt="bottomframe">
</div>
</body>
</html>
mon fichier general_banner.php contient:
<form method=post>
<?php
$content=file_get_contents('scripts/general.txt');
include("../spaw.inc.php");
if(isset($_POST['spaw1']))
$sw = new SpawEditor('spaw1',stripslashes($_POST['spaw1']));
else
$sw = new SpawEditor('spaw1',stripslashes("$content"));
$sw->show();
?>
<input type=submit value="Enregister" />
</form>
<xmp>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST")
$content = $_POST['spaw1'];
$handle=fopen("scripts/general.txt","w");
fwrite($handle,$content);
fclose($handle);
?>
le probleme c que quand je regarde le resultat dans ie, toutes les balises apres mon appel de mon fichier php s'affiche dans ie...
ainsi le debut est correct mais a l'affichage je vois a la fin :
</div>
<div id="bottomframe">
<img src="../cpanel_bottom.gif" alt="bottomframe">
</div>
</body>
</html>
pourquoi? je ne devrais pas voir ca dans ie... j'ai du faire une erreur avec les balises??
merci de m'aider
oeann