Home >Backend Development >PHP Tutorial > 为什么javascript的报错没什么用解决方法

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

WBOY
WBOYOriginal
2016-06-13 13:33:32812browse

为什么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=="")
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