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 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;
}
?>