Probleme php avec div et include

oeann Messages postés 21 Date d'inscription dimanche 12 novembre 2006 Statut Membre Dernière intervention 19 juillet 2009 - 13 mars 2009 à 14:53
stanilou Messages postés 193 Date d'inscription mercredi 5 mai 2004 Statut Membre Dernière intervention 18 novembre 2009 - 20 mars 2009 à 20:02
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>

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

</object></noscript>

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

</object></noscript>

<?php include ("general_banner.php"); ?>

</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();
?>

</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 :

</html>

pourquoi? je ne devrais pas voir ca dans ie... j'ai du faire une erreur avec les balises??

merci de m'aider

oeann

1 réponse

stanilou Messages postés 193 Date d'inscription mercredi 5 mai 2004 Statut Membre Dernière intervention 18 novembre 2009
20 mars 2009 à 20:02
Quand tu dis que tu les vois, c'est que tu les vois en clair comme avec ton éditeur de site? Juste dans IE ou dans firefox aussi?
0
Rejoignez-nous