'; if (move_uploaded_file($_FILES['photo']['tmp_name'],$uploadfile)) { echo"La fiche est valide et a été crée avec succés"; } echo''; $file = fopen($nom=$_POST['nom_medoc'].".html","w"); fwrite($file,"
"); fwrite($file,"\r\n"); fwrite($file,"
"); fwrite($file,"\r\n"); fwrite($file,"
"); fwrite($file,"\r\n"); fwrite($file,"

"); fwrite($file,"\r\n"); fwrite($file,"
"); fwrite($file,"\r\n"); fwrite($file,""); fwrite($file,"
"); fwrite($file,"

$_POST[nom_medoc]($_POST[molecule])

"); fwrite($file,"\r\n"); fwrite($file,"

$_POST[nom_medoc]

"); fwrite($file,"
"); fwrite($file,"

Posologie

"); fwrite($file,"$_POST[posologie]"); fwrite($file,"

Indications

"); fwrite($file,"$_POST[indic] "); fwrite($file,"
"); fwrite ($file,""); fclose($file); ?>