JavaScript函数不能触发是什么原因
大家帮忙看看为什么我的checkinformation()函数不能被触发?急急急!
<?php
if(!empty($_POST["btnsubmit"])){
$link=mysql_connect("localhost","root","123456789") or die(mysql_error());
mysql_select_db(member,$link);
$sql="insert into stu_information values({$_POST['num']},\"{$_POST['name']}\",\"{$_POST['sex']}\",\"{$_POST['birthday']}\",\"{$_POST['major']}\",\"{$_POST['class']}\",\"{$_POST['check']}\",\"{$_POST['email']}\")";
$rs=mysql_query($sql,$link) or die(mysql_error());
$sn=mysql_affected_rows($link);
$msg=($sn==1)? "添加记录成功!":"添加记录失败!";
}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档 </title>
<script language="javascript">
<!--
function check(){
if(form1.num.value==""){
alert("学号不能为空,请输入学号!");
form1.num.focus();
&
相关问答:
<script>
with(document)
{
for(var i=0;i <streams.length;i++)
writeln(" <p> <a href=# onclick=change(streams[i].url)>"+streams[i].name+" </a> < ......
如何实现当鼠标悬停控件上时,出现该控件的尾部显示对应的层,鼠标移动到该层上进行相应的操作,当鼠标移除时(不在控件上也不在层上)层隐藏,
http://topic.csdn.net/u/20090830/23/5e5ded07-7216-46c2-9712- ......
需要兼容ie firefox safari 等浏览器
IE 可以用FSO 但是在其他浏览器不能用
一般的浏览器处于安全考虑都不允许JavaScript读写本地文件的吧
XML文档内容如下(user.xml):
<?xml version="1.0&qu ......
用javascript加载页面时指向一个描点。已知如何通过链接做成描点的,可是想让页面加载时直接指向不需要点击链接。
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &quo ......
BS/MS degree in Computer Science or equivalent
About 3 ~ 4 years front-end development experience
Be good at Web technologies is a must, be familar with HTML/CSS/Javascript, AJAX & ......