Design and implementation of an online trading market scheme (i)
Source: Internet
Author: User
This paper designs an online commodity trading system. As a part of the virtual community, the system simulates the market behavior of people in real life and provides the purchase and sale service for the community users. Using this system, users can not only publish and query supply and demand information, but also real-time online communication, express the purchase and sale of the intention to engage in purchase and sale activities, so as to achieve online transactions.
System with Windows NT 4.0 as the platform, IIS 4.0 as a Web server, MS SQL Server 7.0 database server, the database has a user table, supply and demand information table and sales Record table, three data tables record related transaction data, development tools using HTML, ASP and JavaScript, part of the program is as follows.
User identity authentication Subsystem
The system uses the member system, all users must register first, can enter the market. The user is managed hierarchically, depending on the user level to determine the length of the user's registered supply and demand information release time. The user name and password are used to control the registration behavior and transaction behavior of the users. This subsystem mainly by the program login.htm, CHECK. ASP completed.
Validate user login information and automatically register new users
CHECK. Asp
......
' Handle actions that have been registered with the user
If not rs.eof then
' The password is not correct
If Userpd#trim (RS (1). Value) Then
Response.Write "< title > Login Error Tip </title >< br >"
Response.Write "< center > username" and
"Password" does not match! </center >< br > "
Response.Write "Causes and Treatment methods:< br >
1. If you are the first time to log in, then the user name has been registered by someone else!
You can only change other names to register;< br > "
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.