Program purpose: to work, there are too many friends who need to query enterprise registration information, which saves the trouble and adds the query function on the website. Some people say that there is no computer and there is a mobile phone even if there is no computer. You can use a mobile phone to query data anytime, anywhere. You can do whatever you want, and make a WAP query, all written in Notepad.
The database structure is as follows:
Database name: data. mdb
Table name: info
Field: id, company name, domicile, legal representative ...... (This ellipsis is, and so on)
I. Feedback page hello. asp
The source code is as follows:
<% @ Language = VBScript %>
<% Response. ContentType = "text/vnd. wap. wml" %>
<? Xml version = "1.0" encoding = "gb2312"?>
<! DOCTYPE wml PUBLIC "-// WAPFORUM // dtd wml 1.1 // EN" "http://www.wapforum.org/DTD/ wml_1.1.xml">
<Wml>
<Card id = "qycx" title = "Shangrao industrial and commercial information network">
<P>
Enter the query information <input name = "qycx" type = "text" maxlength = "16"/>
<Anchor title = "OK"> OK
<Go href = "qycx. asp" method = "post">
<Postfield name = "qycx" value = "$ qycx"/>
</Go>
</Anchor>
<Br/>
Shangrao Industry and Commerce Information Network
</P>
</Card>
</Wml>
II. Information receiving page qycx. asp
The source code is as follows:
<% @ Language = VBScript %>
<% Response. ContentType = "text/vnd. wap. wml" %>
<? Xml version = "1.0" encoding = "gb2312"?>
<! DOCTYPE wml PUBLIC "-// WAPFORUM // dtd wml 1.1 // EN" "http://www.wapforum.org/DTD/ wml_1.1.xml">
<Wml>
<Card id = "qycx2" title = "Shangrao industrial and commercial information network">
<P>
<%
Qycx = request. FORM ("qycx ")
Cx = "company name like '%" & qycx & "% '"
Set conn = Server. CreateObject ("adodb. connection ")
'Conn. Open "dsn = qycxsjk; uid =; pwd =; database = data. mdb"
Conn. open "driver = {microsoft access driver (*. mdb)}; dbq =" & server. mappath ("qycx. mdb ")
SQL = "select * from info where" & cx &""
Set rs = server. createobject ("adodb. recordset ")
Rs. open SQL, conn, 1, 1
Do while not rs. eof
%>
<% Qymc = rs ("Company Name ")
Id = rs ("id ")
%>
<A href = "qycx2.asp? Id = <% Response. write id %> "> <% Response. write qymc %> </a>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service