Citation :
<form method="post" action="impressions.php"> <p><u><font size="4"color="orange">Laissez vos impressions...</font></u></p> <p> <font size="3">Pseudo : <input name="pseudo" size="25"/><br /> Mail : <input name="mail" size="28"/><br /> Lieux : <input name="lieux" size="28"/><br /> Impression :<br /> <textarea name="message" rows="8" cols="35"></textarea> <br /> <input type="submit" value="Envoyer" /></font> </p> </form> <center><img src="barre2.gif"></center><br> <p> <? mysql_connect("localhost", "root" ); mysql_select_db("impression" ); if (isset($_POST['pseudo']) AND isset($_POST['message']) AND isset($_POST['mail']) AND isset($_POST['lieux'])) { $pseudo = htmlentities($_POST['pseudo'], ENT_QUOTES); $mail = htmlentities($_POST['mail'], ENT_QUOTES); $lieux = htmlentities($_POST['lieux'], ENT_QUOTES); $message = htmlentities($_POST['message'], ENT_QUOTES); $message = nl2br($message); mysql_query("INSERT INTO impression VALUES('', '" . $pseudo . "', '" . $mail . "', '" . $lieux . "', '" . $message . "')" ); } ?>
|