Fortunately, after suffering for so long, let’s test it. Open index.asp and press F12. As shown in Figure (7-49).
7-49
Everything is under control. Because there are no messages, it shows that there are no messages yet. Post a message and see, as shown in Figure (7-50).
7-50
This page is also normal. Click Submit Message to have a look, as shown in Figure (7-51).
7-51
Ah, just show it! ! ! ! I'm so happy. Since there is no reply yet, it shows no reply yet. OK, try to reply to the message again, as shown in Figure (7-52).
7-52
Hey, why are you here? ? Oh, I remembered that this page (rep.asp) has page protection set up. We have defined that when abnormal access occurs, it will be redirected to the login page (login.asp). This is the login page. No way, just log in. The user name is admin and the password is also admin. This is what I customized in the database. After logging in, click "Reply to this topic", as shown in Figure (7-53).
7-53
Here, you can modify the default "No reply yet", that is, you can reply to the message content. We changed it to "It took so long to finish, stupid!!" After clicking the reply button, as shown in Figure (7-54).
7-54
Ah, I’m so happy, the reply was successful! ! Also, have you noticed that the "Welcome!" above automatically changed to "Welcome admin!" after we logged in. This is the result of the session we established earlier. Test it again. As shown in Figure (7-55).
7-55
When the mouse is paused on the OICQ avatar, "hmily's OICQ number is 7142554" will appear. These are also the results of our previous hard work. Others such as email and homepage are not tested here one by one.
As for other functions such as editing, navigation bars, etc., I have not tested them here one by one. This small guestbook is of course not perfect yet, but I only provide one idea here, and I hope everyone can improve it better. , at the same time, I also provide downloads for this small guestbook. Since the DSN connection is established, please create a system DSN connection by yourself after downloading it, and the name is textmx.