1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?php
include ('secure.php');
include ("mysqlconnect.php");
$nomfiche = $_POST['nomfiche'];
$textarea = $_POST['textarea'];
$textarea2 = $_POST['textarea2'];
$nbh = $_POST['nbh'];
//checkbox privee
if(isset($_POST['checkbox_privee']))
{ $privee="oui"; }
else
{ $privee="non"; }
$sql = "INSERT INTO fiches (nomFiche, loginL, descriptifFiche, resolutionFiche, nbhresolution, privee, emailF) VALUES ( '".$nomfiche."' , '".$_SESSION['loginL']."', '".$textarea."', '".$textarea2."', '".$nbh."', '".$privee."', '".$_SESSION['emailL']."' )";
$result = mysql_query($sql) or die ("Erreur d'Insertion dans la base : ". $sql .'<br />'. mysql_error());
.....
?> |