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
Release: 2016-07-13 10:58:11
Original
1033 people have browsed it

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...
Related labels:
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template