Learn ASP notes (1) -0920

xiaoxiao2021-03-06  59

Try today with ASP to write a message book with a database.

First, the functional analysis of the message book:

1. You can record all visitors' messages.

2, display the messageman and who to leave a message, record the contact information of the message.

3. Manage the visitor's message (delete, change). (Preliminary not consider)

Second, according to functional analysis, it can be divided into three partial programming:

1. Data Enterings: It is both the main interface of the message book, and it is also the main window of the message information.

Here, according to the record of simple information, the data is divided into messages, email addresses, stay

Who, theme, and content.

2, data add part: add information generated by data entry (message board main interface) to the database

3, Data Display section: Displays the message book content.

Therefore, this message book will be divided into three modules, each module is a page.

Third, the message board process analysis:

The first step: enter the main interface of the message book, let the message fill in the basic information: Message, email address, for whom, theme, content.

Step 2: Pass the basic information of the message to the memory variable.

Step 3: Create a database object, perform a database connection, open the database

Step 4: Write the information to the database.

Step 5: Read the database and display the message information.

Fourth, module flow and code

1, data entry module flow and code:

Define the variables required for data entry, accept the information of the message: Messagers (Usern), email address (Emailad), who is left, content, content (THET).

The inspection is empty and the correctness of the email.

Submitted to the data add module.

Join the link to browse the message.

Code:

(Until it, to be continued)

转载请注明原文地址:https://www.9cbs.com/read-114581.html

New Post(0)