Home >Backend Development >PHP Tutorial >PHP ajax imitates dedecms to verify whether the news exists_PHP tutorial

PHP ajax imitates dedecms to verify whether the news exists_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 10:58:111029browse

php ajax imitates dedecms to verify whether the news exists This tutorial uses PHP ajax without refreshing to verify whether the news title entered by the user already exists in the database. If it returns 0, otherwise it returns 1

php tutorial ajax imitation dedecms to verify whether the news exists
This tutorial is a tutorial that uses PHP ajax without refreshing to verify whether the news title entered by the user already exists in the database. If it is, it will return 0, otherwise it will return 1


News title:

       

                                                                                                  cannot be empty


php code

$title = $_post['title'];
if( $title ='www.bKjia.c0m')
{
echo 1;
}
else
{
echo 0;
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632033.htmlTechArticlephp ajax imitation dedecms to verify whether news exists. This tutorial is a news that uses php ajax to verify user input without refreshing. Whether the title already exists in the database, if so return 0 otherwise return...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn