JSP 语言中Mysql数据库导进
<div class="C">
<form name="form" method="post" onsubmit="return check1()">
<div id="div1">
<input name="codeno" id="codeno" value="输入您持有或感兴趣的股票代码" onblur="if(this.value==''){this.value='输入您持有或感兴趣的股票代码';}" onfocus="if (this.value=='输入您持有或感兴趣的股票代码'){this.value='';}" onkeydown="if(event.keyCode==13){return check();}" type="text">
<input value="" size="15" name="CustomerName" id="CustomerName" type="hidden">
<input value="" class="btn1" onclick="return check()" type="button">
</div>
<div id="div2" style="display:none">
<input value="中方信富个股测评" name="CustomerKind" type="hidden">
<input name="CustomerMob" id="CustomerMob" onblur="if(this.value==''){this.value='输入您的手机号码';}" value="输入您的手机号码" onclick="this.value=''" onkeydown="if(event.keyCode==13){return check1();}" onfocus="if (this.value=='输入您的手机号码'){this.value='';}" class="input" type="text">
<input value="" id="submit" class="btn2" onclick="return check1()" type="submit">
</div>
</form>
</div>
</div>
<script type="text/javascript">
function check(){
if(document.getElementById("codeno").value.length!=6){
alert('请输入正确的股票代码');
return false;
}else{
document.getElementById('div2').style.display='block';
document.getElementById('div1').style.display='none';
document.getElementById('CustomerName').value=document.getElementById('codeno').value;
return true;
}
}
function check1()
{
if(document.getElementById("CustomerMob").value.length!=11&&document.getElementById("CustomerMob").value.length!=12)
{
alert('输入正确的手机号码,结果将立即以免费短信发送到您手机');
//document.getElementById('CustomerMob').value='';
return false;
}
else
{
document.getElementById("submit").click();
s
}
}
</script>
这段代码怎么导进数据库啊
下面是可以到进数据库的
<img src="${ctxPath }/themes/probiz2011/pages/jindian/images1/电牛.gif">
<form action="" method="POST" class="qweee">
<p align="center" class="qqqq" >
手机号码:
<input type=text size="18" name="qwe" id="qwe">
<br>
<div class="ppppp"> <input name="submit" type="image" src="${ctxPath }/themes/probiz2011/pages/jindian/images1/提交.gif" onclick="dsewq()"/></div>
</p>
<p class=ppqq>手机号码用于接收阅读密码,不绑定任何收费服务。</p>
</form>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
function insertUserInfo(){
if(!trim($("username").value)){
alert("请输入您的姓名.");
return false;
}
var partten = /^(13[0-9]|15[0|3|6|7|8|9]|18[6|8|9])\d{8}$/;
if(!trim($("phone").value) || !partten.test(trim($("phone").value))){
alert("请输入正确手机号码.");
return false;
}
var paraData = {"customerName":$("username").value,"telephone":$("phone").value};
$j.post(__ctxPath + "/corp/magazine/item/blank.html?doAction=insertUserInfo", paraData, fnInserBack,"json");
}
function fnInserBack(data){
$("username").value="";
$("phone").value="";
alert("您的免费牛股申请已经递交,中方信富客服人员将在工作时间(9:00-18:00)内用020-66602911为您送上牛股.");
}
</script>
现在换了一个方式怎么弄都导不进数据库 请高手解答