affichage bizarre?

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : affichage bizarre?

par @rthur » 29 nov. 2007, 22:04

Bonjour,

Regarde les premières lignes de ton code, rien ne te choques?

Code : Tout sélectionner

<?php <body background="image/fond.jpg" bgproperties="fixed">

affichage bizarre?

par Invité » 29 nov. 2007, 19:28

Bonjour,

le script d'inscription membre fonctionne, la page du membre avec ses infos issues de la base s'affiche bien aussi ensuite, par contre en bas de page réapparait le formulaire d'inscription d'origine :roll: :?:
d'ou vient cette erreur d'affichage?
<?php
<body background="image/fond.jpg" bgproperties="fixed">
<center>
<form name="form1" method="post" action="ins.php" enctype="multipart/form-data">	
 <tr>
 <table width="230" border="1" div align="center">
 <tr>
	<td><center><font color="#000000" face="Book Antiqua"><strong>un pseudo</strong></font> 
            <input name="pseudo" type="text" id="pseudo" maxlength size="35"></center></td>
	</tr>
	<tr>
		<td><center>
		    <font color="#000000" face="Book Antiqua"><strong>un email</strong></font> 
            <input name="email" type="text" id="email"maxlength size="35"></center></td>
	</tr>
	<tr>
        <td><center>
           <font color="#000000" face="Book Antiqua"><strong>un mot de passe</strong></font>
		   <br>
              <input name="passe" type="password" id="passe" maxlength size="15"> 
            </center></td>
</tr>
<tr>
	</td>
	</tr>
	<tr>
       <td><font color="#000000" face="Book Antiqua"><strong>Homme</strong></font><input name="sexe" type="radio" value="homme" checked>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000000" face="Book Antiqua"><strong>Femme</strong></font> 
          <input name="sexe" type="radio" value="femme"></td>
		  </tr>
       <td><center><font face="Book Antiqua"><strong>l'age de ce perso</strong></font>
            <input name="age" type="text" size="3" maxlength="3">
        </center></td>
	   
		</tr>
		<tr>
<td><center><font color="#000000" face="Book Antiqua"><strong>choisissez une race
<br>métis<input name="race" type="radio" value="métis" checked>blanc<input name="race" type="radio" value="blanc"> 
<br>indien<input name="race" type="radio" value="indien">noir<input name="race" type="radio" value="noir">
</td></tr>		
	        <td height="30">
<center>
            <A HREF='#' onClick=\"window.open('liste_avatars.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=900, height=600');return(false)\"><font color="#000000">avatars</font></font></A> 
          </center></td>
	<tr>
	<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="typeava" value="pred" checked> 
	<select class="input" name="predef" onChange="showimage()">\n
<?php
$rep_dir = 'avatars';
$mis=opendir($rep_dir);
while ($fichiers = readdir($mis)) 
{
$list_fichiers[] = $fichiers;
}
asort($list_fichiers);
while (list ($key, $fichiers) = each ($list_fichiers)) 
{
if (ereg("Default", $fichiers)) 
{
$sel = "selected";
}
else 
{
$sel = "";
}
ereg(".gif",$fichiers);
if ($fichiers == "." || $fichiers == "..") 
{
$a=1;
}
else 
{
echo "<option class='input' value='$fichiers' $sel>$fichiers</option>\n";
}
}
?>
</select>&nbsp;&nbsp;<img src="/avatars/01.gif" name="predef_name" width="50" height="50">
</td>
</tr>
<td><center><input type="submit" name="Submit" value="Envoyer"></center></td>
 </tr></td>
 </table>
</form>