Page Non-compatible avec FireFox
Bonjour,
J'ai créer 3 pages qui ont les codes suivant :
Page 1 - Formulaire - a.php
Code:
1 2 3 4 5
| <html><body>
<form method="post" action="wow.php">
Id : <input type="text" name="id" size="12"><br>
<input type="submit" value="OK">
</form></body></html> |
Page 2 - Récupération - wow.php
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?php
$id = $_POST['id'];
if(empty($id)){
echo "Vous n'avez pas entre un id dans le champ qui correspond.";
?><br><br><a href="javascript:history.back()">Retour</a><?
}
else{
if($id == '5') {
print "Vous avez choisie "; print $id; print ", ce qui n'est pas un id correcte !";
?><br><br><a href="javascript:history.back()">Retour</a><?
}
else{
print "Vous avez choisie l'objet qui possede l'id "; print $id; print ", celui ci coresspond à ceci"; ?>
<br><br><div><iframe src="./show.php?id=<? print $id; ?>" width="580" height="450" marginwidth="0" marginheight="0" frameborder="0"></iframe></div> <?
}
}
?> |
Page 3 - La page incluse dans wow.php - show.php
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <table width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#333333">
<tbody>
<tr>
<td>
<table class="contenu" width="100%" cellspacing="0" cellpadding="4" border="1" summary="">
<tbody>
<tr>
<td>
<table class="contenu" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr><th align="left"><font color="#ffffff">En-tête colonne 1</font></th><th nowrap align="right"><font color="#ffffff">En-tête colonne 2 sans saut de ligne</font></th></tr>
<tr><td><font color="#ffffff">Ligne 1</font></td></tr>
<tr><td><font color="#ffffff">Ligne 2 <? print $id; ?></font></td></tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table> |
Alors voila, 1ère page, aucun problème.
2ème page, marche sous Internet Explorer mais pas sous FireFox elle affiche tout et rien.
3ème page, Affiche se qu'il faut sauf la variable $id avec FireFox
Je sais que sela doit etre un problème de sytaxe mais je n'arrive pas a le corriger.
Quelqu'un peut m'éclairer ?
Merci