PHP check for double posting on the site -


i want run check when user submits form compare new post old once avoid double (or more) postings of same content.

i thought of like

if(strtolower($string1) == strtolower($string2)) { //do } 

but not sure how work checking entire website full of posts unique id's

any appreciated!

you use similar_text in php..

<?php  $post1 = 'test1';  $post2 = 'test2';  similar_text($post1, $post2, $percent);  if(round($percent)>90) {   echo "the 2 posts 90% similar.. sorry try again. no spamming !"; }  

Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -