<?php
LE fichier fais 2200 lignes LOL #-o
?><?php
LE fichier fais 2200 lignes LOL #-o
?>Si en rafraîchissant la page mais quand je complete l'inscription que ça le fasse automatiquement,Donc tu veux que cela se fasse sans rafraîchir la page ni clique de bouton? tu dois passer par de l'ajax je pense
<?php
session_start();
include"../config.inc.php";
include"../function.inc.php";
verifyAuth();
// Call logout function
if(isset($_GET['action']) && $_GET['action'] == "logout") {
logout();
}
$sql_stealth = "SELECT * FROM ligne_base";
$query_stealth = mysql_query($sql_stealth);
?>
<!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=utf-8" />
<title>Admin Panel - <?php echo basename($_SERVER['REQUEST_URI']);?></title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
a:link {
color: #FFF;
}
a:visited {
color: #FFF;
}
a:hover {
color: #900;
}
a:active {
color: #FFF;
}
body {
background-color: #5B7CFF;
}
</style>
</head>
<body>
<?php include"top.inc.php";?><br />
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" valign="top"><?php include"menu.inc.php";?></td>
<td width="10"> </td>
<td valign="top"><table width="690" border="0" cellpadding="0" cellspacing="0" class="Contorno">
<tr>
<td valign="top" bgcolor="#84C1DF"><table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="TitoloMenu">
<tr>
<td bgcolor="#003366">Ajoutez </td>
</tr>
</table>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="TitoloMenu">
<tr>
<td bgcolor="#003366"> </td>
</tr>
</table>
<form id="form" NAME="form" method="post" onSubmit="return nameempty();" action="insert_confirm.php">
<table width="650" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td bgcolor="#5B7CFF" class="TestoContenuto">Insèrez </td>
<td bgcolor="#5B7CFF"><input name="cmgu_host" type="text" class="LoginBox" id="textfield3" /></td>
</tr>
<tr>
<td bgcolor="#5B7CFF" class="TestoContenuto"> </td>
<td bgcolor="#5B7CFF"><input name="add_cmgu" type="hidden" id="add_cmgu" value="ok" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="button2" type="submit" class="LoginBox" id="button2" value="Add" /></td>
</tr>
</table>
</form>
<br /></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
<br /><?php include"bottom.inc.php";?>
</body>
</html>
<?php mysql_close($query);?>
voilà le texte pour le formulaireCode : Tout sélectionner
<form id="form" NAME="form" method="post" onSubmit="return nameempty();" action="#">Code : Tout sélectionner
if(isset($_POST['button2'])){
//tes actions ici
}