par kevin254kl » 01 janv. 2016, 14:48
Code : Tout sélectionner
<form id="form" NAME="form" method="post" onSubmit="return nameempty();" action="#">
if(isset($_POST['button2'])){ //tes actions ici }
par Minialvitano » 31 déc. 2015, 01:28
<?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);?>
par kevin254kl » 31 déc. 2015, 01:11
par Minialvitano » 30 déc. 2015, 21:56
par kevin254kl » 30 déc. 2015, 19:01
par Minialvitano » 30 déc. 2015, 17:16
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
par Minialvitano » 30 déc. 2015, 17:14
<?php LE fichier fais 2200 lignes LOL #-o ?>
par kevin254kl » 30 déc. 2015, 17:13
par Minialvitano » 30 déc. 2015, 17:08
il faut remettre file_put_contents("/var/etc/fichier", $mgu, FILE_APPEND); au bon endroit.
par or 1 » 30 déc. 2015, 17:00
par Minialvitano » 30 déc. 2015, 16:55
$mgu = "\n#########################\n"; $mgu .= "## " . date("Y-m-d H:i:s") . " ##\n"; $mgu .= "## NANANANAN ##\n"; $mgu .= "#########################\n"; $mgu .= "\n";
par kevin254kl » 30 déc. 2015, 16:55
par Minialvitano » 30 déc. 2015, 16:51
par kevin254kl » 30 déc. 2015, 16:50
echo var_dump($result_mgu);
par Minialvitano » 30 déc. 2015, 16:45