Home >php教程 >php手册 >php ajax仿dedecms 验证新闻是否存在

php ajax仿dedecms 验证新闻是否存在

WBOY
WBOYOriginal
2016-05-25 16:57:401045browse
本教程是一款利用了php ajax无刷新验证用户输入的新闻标题是否己经存在了数据库中,如果是返回0否则就返回1

 
 
 

 代码如下 复制代码
新闻标题:
     
     
                       
 不能为空
 代码如下 复制代码

php代码

 代码如下 复制代码

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



本文地址:

转载随意,但请附上文章地址:-)

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