为什么javascript的报错没什么用解决方法

WBOY
Release: 2016-06-13 13:33:32
Original
748 people have browsed it

为什么javascript的报错没什么用
要崩溃了,为什么javascript的报错没什么用?

include("conn.php");

if(isset($_POST["submit"]))
{
$sql="INSERT INTO message (id,user,title,content,lastdate) " .
  "values ('','$_POST[user]','$_POST[title]','$_POST[content]',now())";
  //echo $sql;
  $result = mysql_query($sql,$conn)or die(mysql_error());
}


?>

 

 



  user:

  title:

  content:


 

 



------解决方案--------------------
if (document.myform.user.value=="")
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!