Code : Tout sélectionner
<form name="form">
<input type="Text" name="nom">
<script language="JavaScript">
document.form.nom.focus();
</script>
</form>
<html>
<head>
<title>AJOUT D'UNE MACHINE</title>
</head>
<body>
<br>
<h2 align=center> AJOUTER UNE MACHINE </H2>
<BR>
<form method="post" action="page4_2.php">
<?
$img_fond="image_fond/1.jpg";
$img_fond_lar="100%";
$img_fond_haut="100%";
echo"<BODY BGCOLOR=\"blue\" TEXT=\"white\" LINK=\"white\" VLINK=\"white\" ALINK=\"white\"
WIDTH=\"$img_fond_lar\" HEIGHT=\"$img_fond_haut\" BACKGROUND=\"$img_fond\" >";
?>
<table border=0 align=center width=330 CELLSPACING=0><tr>
<td width=50%><p>Nom de l'utilisateur</td>
<td width=50%><p><input type=text name=nom></td>
</tr>
<tr>
<td width=50%><p>Nom de la machine</td>
<td width=50%><p><input type=text name=machine></td>
</tr>
<tr>
<td width=50%><p>Vitesse</td>
<td width=50%><p><input type=text name=vitesse></td>
</tr>
<tr>
<td width=50%><p>IP</td>
<td width=50%><p><input type=text name=ip ></td>
</tr>
<tr>
<td width=50%><p>MAC</td>
<td width=50%><p><input type=text name=mac ></td>
</tr>
<tr>
<td width=50%><p>Systeme d'exploitation</td>
<td width=50%><p><input type=text name=os ></td>
</tr>
<tr>
<td width=50%><p>Localisation</td>
<td width=50%><p><input type=text name=localisation></td>
</tr>
<tr>
td height=20></td>
<td height=20></td>
</tr>
<tr>
<td width=135 align=center valign=center><input type=submit name=expedier value=Envoyer></td>
<td width=126 align=center valign=center><input type=reset name=annuler value=Annuler></td>
</tr>
</table>
<br>
<?
$lien1="./page2.php";
$text1="accueil";
$lien2="./index.php";
$text2="sortir";
echo"<table width=100%>";
echo"<tr>";
echo"<td width=25% align=left></td>";
echo"<td width=50% align=center>";
echo"<b><a href=\" $lien1\">$text1</a> <br /></b>";
echo"</td>";
echo"<td width=25% align=right>";
echo"<b><a href=\" $lien2\">$text2</a> <br /></b>";
echo"</td></tr></table>";
?>
</form>
</body>
</html>
<html>
<head>
<title>AJOUT D'UNE MACHINE</title>
</head>
<body>
<br>
<h2 align=center> AJOUTER UNE MACHINE </H2>
<BR>
<form method="post" action="page4_2.php" name="nom_form">
<?
$img_fond="image_fond/1.jpg";
$img_fond_lar="100%";
$img_fond_haut="100%";
echo"<BODY BGCOLOR=\"blue\" TEXT=\"white\" LINK=\"white\" VLINK=\"white\" ALINK=\"white\"
WIDTH=\"$img_fond_lar\" HEIGHT=\"$img_fond_haut\" BACKGROUND=\"$img_fond\" >";
?>
<table border=0 align=center width=330 CELLSPACING=0><tr>
<td width=50%><p>Nom de l'utilisateur</td>
<td width=50%><p><input type=text name=nom>
<script language="JavaScript">
document.nom_form.nom.focus();
</script></td>
</tr>
<tr>
<td width=50%><p>Nom de la machine</td>
<td width=50%><p><input type=text name=machine></td>
</tr>
<tr>
<td width=50%><p>Vitesse</td>
<td width=50%><p><input type=text name=vitesse></td>
</tr>
<tr>
<td width=50%><p>IP</td>
<td width=50%><p><input type=text name=ip ></td>
</tr>
<tr>
<td width=50%><p>MAC</td>
<td width=50%><p><input type=text name=mac ></td>
</tr>
<tr>
<td width=50%><p>Systeme d'exploitation</td>
<td width=50%><p><input type=text name=os ></td>
</tr>
<tr>
<td width=50%><p>Localisation</td>
<td width=50%><p><input type=text name=localisation></td>
</tr>
<tr>
<td height=20></td>
<td height=20></td>
</tr>
<tr>
<td width=135 align=center valign=center><input type=submit name=expedier value=Envoyer></td>
<td width=126 align=center valign=center><input type=reset name=annuler value=Annuler></td>
</tr>
</table>
<br>
<?
$lien1="./page2.php";
$text1="accueil";
$lien2="./index.php";
$text2="sortir";
echo"<table width=100%>";
echo"<tr>";
echo"<td width=25% align=left></td>";
echo"<td width=50% align=center>";
echo"<b><a href=\" $lien1\">$text1</a> <br /></b>";
echo"</td>";
echo"<td width=25% align=right>";
echo"<b><a href=\" $lien2\">$text2</a> <br /></b>";
echo"</td></tr></table>";
?>
</form>
</body>
</html>
Avec ça ça devrait marcher.