当前位置:编程学习 > asp >>

如何用asp+js连接sql数据库,实现查询,添加和删除操作。要求输入姓名能查到电话号码,也可以添加删除。

表的结构tel{num(nvarchar20)tel1(char12)tel2(char12)tel3(char12)} 主页上的form代码如下 <form name="form1" method="post" action="chaxun.asp"> <input type="text" name="textfield"> <input type="submit" name="Submit" value="查询"> </form> <p>添加号码(分开输入名字和号码)</p> <form name="form2" method="post" action=""> <input type="text" name="textfield2"> <input type="text" name="textfield4"> <input type="submit" name="Submit2" value="添加"> </form> <p>删除号码(输入名字和号码)</p> <form name="form3" method="post" action=""> <input type="text" name="textfield3"> <input type="submit" name="Submit3" value="删除"> </form> 查询结果最好能弹出消息显示,添加和删除有消息提示就行了。十分感谢
追问:你好。我不会ajax啊。js类库,jquery具体怎么写啊,在我的代码里,在线等,求指教啊。541236659@qq.com.在线等啊。
你有qq吗?以后有问题请教你,十分感谢。
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,