Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<form method="post" action="forum.php" name=form1> [javascript:document.form1.submit() forum] </form>
<?php if ($antispam == "000") { //ok } else { print "Une Erreur s'est produite!"; exit; } ?>
<? session_start(); ?> <html> <head> <script> function smile(ajj){ document.ajliv.comment.value+=ajj; } </script> <script language="JavaScript1.2"> function ejs_nodroit() { alert('Clic droit interdit'); return(false); } document.oncontextmenu = ejs_nodroit; </script> <link href="mon_css2.css" rel="stylesheet" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"> <!-- a { font-size: 0px; } --> </style></head> <center> <form method="post" action="forum.php" name=form1> [javascript:document.form1.submit() ] </form> <!-- SESSION CODE <?=$_SESSION['code']?>, POST CODE = <?=$_POST['code']?>--> <?php if (isset($_POST['ajouter']) && $_POST['comment']!=""){ if ($_SESSION['code'] == $_POST['code']) { echo "Message ajouté "; $ouvre=fopen("livredor2.txt","a+"); $comment=str_replace('"','"',$_POST['comment']); $comment=str_replace("\'","'",$comment); $comment=str_replace("\n","",$comment); $comment=htmlspecialchars($comment); $comment=str_replace(" !!1 "," ",$comment); $comment=str_replace(" !!2 "," ",$comment); $comment=str_replace(" !!3 "," ",$comment); $comment=str_replace(" !!4 "," ",$comment); $comment=str_replace(" !!5 "," ",$comment); $comment=str_replace(" !!6 "," ",$comment); $comment=str_replace(" !!7 "," ",$comment); $comment=str_replace(" !!8 "," ",$comment); $comment=str_replace(" !!9 "," ",$comment); $comment=str_replace(" !!10 "," ",$comment); $comment=str_replace(" !!17 "," ",$comment); $comment=str_replace(" !!35 "," ",$comment); $comment=str_replace(" !!37 "," ",$comment); $comment=str_replace(" !!59 "," ",$comment); $pseudo = $_POST['pseudo']; $mail = $_POST['mail']; $jour = $_POST['jour']; if ($pseudo==""){$pseudo="Anonyme";} if ($mail==""){$mail="";} $commentaire="$pseudo<;>$mail<;>$jour<;>$comment<;>$pseudo$encore<;>\n"; fwrite($ouvre,$commentaire); fclose($ouvre); } else { echo "Captcha invalide "; } } ?> <?php $ouvre=fopen("livredor2.txt","r"); $lit=fread($ouvre,filesize("livredor2.txt")); $enregistrement2=array_reverse(explode("\n",$lit)); $enregistrement=Array(); foreach($enregistrement2 as $rec) { $lignes = explode("<;>",$rec); if ($lignes[3] == "") { continue; } $enregistrement[] = $rec; } $encore=count($enregistrement); echo "<!-- REC COUNT = ".$encore." -->"; ?> <center> <?php include("mon_css2.inc.php");?> </center> [# ] [# ] [# ] [# ] [# ] [# ] [# ] [# ] [# ] [# ] [# ] [# ] [# ] [# ] Votre Nom, Votre email <textarea name="comment" cols="38" rows="5"></textarea> Saisir le code afficher: Sensible au majuscule et minuscule "> </form> </center> </center> </html>
[javascript:document.form1.submit() forum]
<?php if(isset($_POST['cfrm']) && empty($_POST['cfrm'])) //Si "host" est vide { //On continue le traitement de données } else //Sinon { } ?>