ASP type Web site combined with dynamic Forum members of the method 1th/3 page _ Application Tips

Source: Internet
Author: User
Personal website such as membership registration module + Dynamic Network forum, that website and dynamic Network Forum system integration, the implementation of different Web systems between the user Information synchronization update, login and other operations is not easy, although the dynamic network has provided a detailed "Dynamic Network Forum system API Interface developer Guide", But a rookie like me 1:30 is going to be a bad guy, sweating. Not reconciled, in its login, validation and other functions to do some research and then to test the final after the small have become, rookie also have rookie method, haha.

I. Website file structure

Wwwroot
┝index.asp
┝checkuserlogin.asp
┕bbs/

Second, the principle of integration

It is not difficult to implement synchronization updates, and the main problem with consolidation is that it is difficult to log on synchronously, so our focus will be on how to implement synchronous logins. My approach is to integrate the Master Station user table into the Dynamic Network user table Dv_user (eliminates the trouble of updating two libraries later), you can add fields to dv_user as needed, and to bbs/login.asp and bbs/inc/dv_ clsmain.asp make appropriate changes, the form to the bbs/login.asp to verify the login, the main station based on the success of the log in the session after the record of the information to determine whether login success, and obtain user information.

Third, the new modification file

1.index.asp Code:

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> personal website and dynamic network integration (www.mzwu.com) </title>

<body>
<!--#include file= "checkuserlogin.asp"-->
<%
If Checkuserlogin Then
Response.Write ("<a href=" "Bbs/logout.asp?back=1" "> Exit login </a><p></p>")
Response.Write ("User name:" & Request.Cookies ("username") & "<br>")
Response.Write ("Sex:" & Request.Cookies ("Sex") & "<br>")
Response.Write ("Registration Time:" & Request.Cookies ("Joindate") & "<br>")
Response.Write ("Last Login:" & Request.Cookies ("Lastlogin") & "<br>")
Response.Write ("Login Count:" & Request.Cookies ("Userlogins") & "<br>")
Response.Write ("Browser type:" & Request.Cookies ("browser") & "<br>")
Response.Write ("Browser versions:" & Request.Cookies ("Version") & "<br>")
Response.Write ("Operating system:" & Request.Cookies ("platform") & "<br>")
Else
%>
<form id= "Form1" Name= "Form1" method= "Post" action= "Bbs/login.asp?action=chk&back=1" >
User name:
<input name= "username" type= "text" id= "username" size= "ten"/>
<br/>
Password
<input name= "password" type= "password" id= "password" size= "ten"/>
<input type= "Submit" name= "submit" value= "Login"/>
</form>
<%
End If
%>
<p></p><a href= "bbs/" > Enter forum </a>
</body>


Current 1/3 page 123 Next read the full text

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.