Kijan mwen ka evite wobo ekri nan yon fòmilè mwen nan yon sit entènèt

Kijan mwen ka evite wobo ekri nan yon fòmilè mwen nan yon sit entènèt
Bonjou mwen gen yon sit entènèt ki gen yon blog. depi kèk tan map jwenn kèk kòmantè ki pa entèresan nan fòmilè kòmantè an.. mwen kwè ke se wobo ki ekri yo paske yo anpil.. sa konn rive nan fòmilè kontak yo tou.. kijan m ka anpeche sa svp.

Appolon Guy-Alain 28 Octobre 2022PHPRésolu 4

## Gen plisye fason ou ka fe sa

- premye fason ou ka fe sa se itilize yon captcha
- dezyem nan se itilize teknik po myel lan (honey pot en anglè)

***Pou captcha ou ka itilize google captcha pou verifye avan soumision fomilè an pou evite ke Robo yo ranplil ***

### map montre dezyem methode lan

- mete yon input type hidden nan formulaire lan ba li yon name


<input type="hidden" name="honeypot" />


***kounya nan verifcation $_POST ou an verifye si robot an pa ranplil
konsa wap pranl nan pyej kew kite pou li an***


<?php
if(isset($_POST['submit']{
if(!empty(['honeypot']){
//mete kod ou an la
}
}
?>

Joseph Joberno Birlado 28 Octobre 2022Répondre

Ok mèsi frèm mwen pral eseye

Appolon Guy-Alain 31 Octobre 2022Répondre

Mwen ka bay Input mwen an non ke m vle?

Appolon Guy-Alain 31 Octobre 2022Répondre

Réponse à
## Gen plisye fason ou ka fe sa

- premye fason ou ka fe sa se itilize yon captcha
- dezyem nan se itilize teknik po myel lan (honey pot en anglè)

***Pou captcha ou ka itilize google captcha pou verifye avan soumision fomilè an pou evite ke Robo yo ranplil ***

### map montre dezyem methode lan

- mete yon input type hidden nan formulaire lan ba li yon name


<input type="hidden" name="honeypot" />


***kounya nan verifcation $_POST ou an verifye si robot an pa ranplil
konsa wap pranl nan pyej kew kite pou li an***


<?php
if(isset($_POST['submit']{
if(!empty(['honeypot']){
//mete kod ou an la
}
}
?>
wi non kew vle !

Joseph Joberno Birlado 03 Novembre 2022Répondre

Réponse à
Mwen ka bay Input mwen an non ke m vle?

Derniers publications

Pwoblem traduire en anglais

13 Août 2024JavaNon résolu 0

koneksyon ak kont gmail

mwen gen yon paj koneksyon map fe, m vle le pou moun nan ap konekte li kapab konekte ak kont gmail li, deja mesi pou ed nou pral ban mwen

Joseph Patrusky 12 Avril 2024PHPNon résolu 0

Problem afichaj yon icon sou yon paj

Bonsoir Mw ale sou sit ionicon nan , mw kopye kod la jan l ye a men icon nan pa vle paret kijan mw ka rezoud sa svp ?

Francois Lovenya 10 Mars 2024HTMLNon résolu 0

Problem afichaj

mwen gen on ti problem, mwen gen on problem afichaj m pa we kote problem lan ye. premyeman nan pati afichaj imaj yo, mwen vle mete si imaj image1_side1 egziste pran image1_side1, si li pa egziste se image1_style 1 ki egziste afiche li etc... menm jan nan pati text lan tou si para1_style1 egziste afiche li si se pa sa afiche para2_style1 etc... m pa konnen si se lojik ki gen prob banm on koud men mesi ~code~ <?php include('include/database.php'); ?> <?php include('include/menu_adm.php') ?> <!--cote administrateur--> <div class="admin_page_prim"> <div class="admin_page"> <div class="filter_admin_page"> <ul> <li>s</li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> </div> <div class="box_admin_page"> <div class="box_admin_titre_button"> <h1>Page de la historicite</h1> <div class="box_admin_button"> <!--<a href=""> <button class="voir">Voir</button> </a>--> <a href="adm_actualite_creer.php"> <button class="creer">Creer</button> </a> <!-- <a href=""> <button class="modifier">Modifier</button> </a> <a href=""> <button class="effacer">Effacer</button> </a>--> </div> </div> <form action="" method="POST"> <h2><img src="icon/points.png" alt=""> Presentation de la page qui retrace l'historicite de la CONALD</h2> <div class="liste_background"> <?php $query = $conn->prepare("SELECT * FROM actualite_prime"); $query->execute(); while ($actualite = $query->fetch()) { ?> <div class="liste_actualite_box"> <div class="liste_background_image"> <?php if (isset($actualite["image1_side1"])) { ?> <img src="media/actualite/<?= $actualite['image1_side1'] ?>" alt=""> <?php } ?> <?php if (!isset($actualite["image1_side1"]) and isset($actualite["image1_style1"])) { ?> <img src="media/actualite/<?= $actualite['image1_style1'] ?>" alt=""> <?php } ?> <?php if (!isset($actualite["image1_side1"]) and !isset($actualite["image1_style1"]) and isset($actualite["image2_style1"])) { ?> <img src="media/actualite/<?= $actualite['image2_style1'] ?>" alt=""> <?php } ?> <?php if (!isset($actualite["image1_side1"]) and !isset($actualite["image1_style1"]) and !isset($actualite["image2_style1"]) and isset($actualite["image3_style1"])) { ?> <img src="media/actualite/<?= $actualite['image3_style1'] ?>" alt=""> <?php } ?> <?php if (!isset($actualite["image1_side1"]) and !isset($actualite["image1_style1"]) and !isset($actualite["image2_style1"]) and !isset($actualite["image3_style1"]) and isset($actualite["image4_style1"])) { ?> <img src="media/actualite/<?= $actualite['image4_style1'] ?>" alt=""> <?php } ?> <?php if (!isset($actualite["image1_side1"]) and !isset($actualite["image1_style1"]) and !isset($actualite["image2_style1"]) and !isset($actualite["image3_style1"]) and !isset($actualite["image4_style1"]) and isset($actualite["image5_style1"])) { ?> <img src="media/actualite/<?= $actualite['image5_style1'] ?>" alt=""> <?php } ?> <?php if (!isset($actualite["image1_side1"]) and !isset($actualite["image1_style1"]) and !isset($actualite["image2_style1"]) and !isset($actualite["image3_style1"]) and !isset($actualite["image4_style1"]) and !isset($actualite["image5_style1"]) and isset($actualite["image6_style1"])) { ?> <img src="media/actualite/<?= $actualite['image6_style1'] ?>" alt=""> <?php } ?> </div> <div class="liste_background_text"> <div class="liste_background_text_titre_para"> <p class="date_adm_history"><?= $actualite['date_style1'] ?></p> <h1><?= $actualite['titre_style1'] ?></h1> <?php if (isset($actualite["para1_style1"])) { ?> <p><?php echo substr($actualite['para1_style1'], 0, 360); ?> ...</p> <?php } ?> <?php if (!isset($actualite["para1_style1"]) and isset($actualite["para2_style1"])) { ?> <p><?php echo substr($actualite['para2_style1'], 0, 360); ?> ...</p> <?php } ?> <?php if (!isset($actualite["para1_style1"]) and !isset($actualite["para2_style1"]) and isset($actualite["para3_style1"])) { ?> <p><?php echo substr($actualite['para3_style1'], 0, 360); ?> ...</p> <?php } ?> <?php if (!isset($actualite["para1_style1"]) and !isset($actualite["para2_style1"]) and !isset($actualite["para3_style1"]) and isset($actualite["para4_style1"])) { ?> <p><?php echo substr($actualite['para4_style1'], 0, 360); ?> ...</p> <?php } ?> </div> <div class="liste_background_button"> <button class="modifier"><a href="adm_actualite_modifier.php?actualite=<?= $actualite['id_actualite'] ?>">Modifier</a></button> <button class="effacer"><a href="adm_actualite_delete.php?actualite=<?= $actualite['id_actualite']; ?> &&delete=1300&&id_actualite=<?= $actualite['id_actualite']; ?>">Effacer</a></button> </div> </div> </div> <?php } ?> </div> </form> </div> </div> </div> </body> </html> ~/code~

Huguens Paul 22 Mars 2023PHPNon résolu 6

Pwoblem update nan on baz de done

Banm on ti ed nan sa svp ~code~ <?php if(isset($_POST['update'])){ if(!empty($_POST['phone_adm']) AND !empty($_POST['email_adm']) AND !empty($_POST['facebook']) AND !empty($_POST['instagram']) AND !empty($_POST['pinterest'])){ $phone_adm=htmlspecialchars($_POST['phone_adm']); $email_adm=htmlspecialchars($_POST['email_adm']); $facebook=htmlspecialchars($_POST['facebook']); $instagram=htmlspecialchars($_POST['instagram']); $pinterest=htmlspecialchars($_POST['pinterest']); /* echo '<pre>'; print_r($_POST); print_r($filename); echo '</pre>'; die();*/ $queryc=$conn->prepare("SELECT id_contact FROM contact"); $queryc->execute(); $contact=$queryc->fetch(); $query=$conn->prepare("UPDATE contact SET id_adm=:id_adm, phone_adm=:phone_adm, email_adm=:email_adm, facebook=:facebook, instagram=:instagram, pinterest=:pinterest WHERE id_contact=:id_contact"); $query->execute(array('id_adm' => $_SESSION['adminuser'], 'phone_adm'=>$phone_adm, 'email_adm'=>$email_adm, 'facebook'=>$facebook, 'instagram'=>$instagram,'pinterest'=>$pinterest, 'id_contact'=>$contact['id_contact'])); } } ?> ~/code~

Huguens Paul 20 Novembre 2022PHPNon résolu 7

Problem nan execute

Koman mwen ka fe poum rezoud problem sa ~code~ <?php $query=$conn->prepare('SELECT * FROM products'); $query->execute(); WHILE($products=$query->fetch()){ ?> <div> <a href="products-single.php?id=<?=$products['id_products']?>"> <div class="slider_items"> <img src="upload/products/<?=$products['image_products1']?>" alt=""> <div class="product-same-detail1"> <a href="" title="Add to cart"><i class="fa-solid fa-cart-shopping"></i></a> <a href="" title="Buy now"><i class="fa-solid fa-money-check-dollar"></i></a> </div> <div class="product-same-detail"> <h1><?=$products['name']?></h1> <?php $query=$conn->prepare('SELECT * FROM artist JOIN products ON artist.id_artist=products.id_artist WHERE id_products=?'); $query->execute(); WHILE($artist = $query->fetch()){ ?> <p class="auteur"><?= $artist['firstname'] ?> <?= $artist['lastname'] ?></p> <?php } ?> <p class="text-dark"></p> <p class="text-dark"><?= $products['width'] ?> x <?= $products['length'] ?> x <?= $products['weight'] ?></p> <p class="prix"><?=$products['price']?>$</p> </div> </div> </a> </div> <?php } ?> ~/code~

Huguens Paul 30 Octobre 2022PHPRésolu 1

Konpare enfomasyon nan on baz de done nan on select nan on fomile

kijan mwen ka fe poum fe konparezon ant eleman nan on baz d done epi on eleman ke mwen ekri menm, tankou la mwen te ensere Vertical nan baz de done an mwen vle we sil egal a vertical pou condition yo ka fe efe, a mwen ke mwen fe nan condition yo ~code~ <div class="form-group col-md-4"> <label for="exampleInputEmail1">Orientation</label> <select class="form-select" aria-label="Default select example" name="orientation"> <?php if($products['orientation'] = 'Horizontal'){ ?> <option selected value="<?=$products['id_products']?>"><?=$products['orientation']?></option> <option value="Vertical">Vertical</option> <?php } else if($products['orientation'] = 'Vertical') { ?> <option selected value="<?=$products['id_products']?>"><?=$products['orientation']?></option> <option value="Horizontal">Horizontal</option> <?php } ?> </select> </div> ~/code~

Huguens Paul 28 Octobre 2022PHPRésolu 2

Categorie