Page 1 sur 1
2 lignes de code à corriger svp
Posté : 08 nov. 2005, 23:14
par Saturnin
<script language="php">
$adresse = "C:\Documents and Settings\Saturnin\Bureau\Kit Graphique\Nouveau dossier\FRAMES\iframes.htm";
</script>
<iframe src="<?php '$adresse'; ?>" width="622" height="721" name="page-principale" noresize marginwidth= 0 marginheight = 0 frameborder=no scrolling="auto"> <!-- src : source variable, noresize : le cadre ne peut pas etre redimensionner --></iframe>
si je met directement l'adresse de la page htm ds la src de l'iframe, tout marche, mais là j'ai une page non trouvvé.
Posté : 08 nov. 2005, 23:29
par Cyrano
<script language="php">
$adresse = "C:\Documents and Settings\Saturnin\Bureau\Kit Graphique\Nouveau dossier\FRAMES\iframes.htm";
</script>
<iframe src="<?php echo($adresse); ?>" width="622" height="721" name="page-principale" noresize marginwidth= 0 marginheight = 0 frameborder=no scrolling="auto"> <!-- src : source variable, noresize : le cadre ne peut pas etre redimensionner --></iframe>
Posté : 08 nov. 2005, 23:50
par Saturnin
j'ai encore la meme erreure : impossible d'afficher la page
Posté : 09 nov. 2005, 12:19
par charabia
<script language="php">
$adresse = "C:\Documents and Settings\Saturnin\Bureau\Kit Graphique\Nouveau dossier\FRAMES\iframes.htm";
</script>
<iframe src="<?php echo($adresse); ?>" width="622" height="721" name="page-principale" noresize marginwidth= 0 marginheight = 0 frameborder=no scrolling="auto"> <!-- src : source variable, noresize : le cadre ne peut pas etre redimensionner --></iframe>
<script language="php">
$adresse = "C:\Documents and Settings\Saturnin\Bureau\Kit Graphique\Nouveau dossier\FRAMES\iframes.htm";
</script>
<iframe src="<?php echo $adresse; ?>" width="622" height="721" name="page-principale" noresize marginwidth= 0 marginheight = 0 frameborder=no scrolling="auto"> <!-- src : source variable, noresize : le cadre ne peut pas etre redimensionner --></iframe>
Le code de
Cyrano fonctionne. En mettant echo $adresse; ça marche aussi.
Regardes si ce n'est pas le chemin d'accès qui est erroné.
Posté : 09 nov. 2005, 18:38
par Invité
nop, car quand je fais copier coller le chemin d'acces directement ds la SRC de l'iframe, ca marche
par contre je dois enregistrer cette page en .php ? (j'viens de lire un poste sur un fofo qui m'a mis le doute :s
Posté : 09 nov. 2005, 19:43
par Ultiny
Essay à tout hazard: file://C:\Documents and Settings\Saturnin\Bureau\Kit Graphique\Nouveau dossier\FRAMES\iframes.htm
Posté : 09 nov. 2005, 20:55
par Invité
?