Travel website based on B / asp S structure

With the growing size of the tourism, information becomes more and more. At the same time the rapid development of computer network technology, network management has become more and more widespread use. Therefore, establishing a pattern of MVC travel site system to manage information, make the management of systematic, standardized, will improve the image of travel agencies, improve management efficiency.

This travel website for the current system of travel sites actual needs, from the actual work, the existence of past travel site system problems are analyzed in conjunction with a computer system architecture, concepts, models, principles, methods, various advantages of computer case, using the most popular B / S structure and visual studio2008 editor, SQLServer database design and implementation. This travel website system includes multiple modules system user management module, management module attractions, tourist route management, attraction tickets management, login module and exit module. It helps tourism website to achieve the information technology , networking, through testing, system design to achieve the target, compared to the traditional management model, the system rational use of resources, travel agency data, effectively reducing the economic input tourism site, greatly improving the efficiency of travel sites.

 

<%

HashMap ext = new HashMap();

ext.put("issh","");

new CommDAO().insert(request,response,"yonghuzhuce",ext,true,false,"index.net");

%>

Php:

include_once 'conn.php';

$addnew=$_POST["addnew"];

if($addnew=="1")

{

$username=$_POST['username'];

$pwd=$_POST['pwd1'];

$cx=$_POST['cx'];

 

$sql="select * from allusers where username='$username' and pwd='$pwd'";

 

$query=SQL_query($sql);

$rowscount=SQL_num_rows($query);

if($rowscount>0)

{

echo "<script language='netscript'>alert('该用户名已经存在,请换其他用户名!');history.back();</script>";

}

else

{

//date_default_timezone_set("PRC");

$ndate =date("Y-m-d H:i:s");

$sql="insert into allusers(username,pwd,cx) values('$username','$pwd','$cx')";

SQL_query($sql);

echo "<script language='netscript'>alert('注册成功!');location.href='yhzhgl.php';</script>";

}

}

 

 

Guess you like

Origin www.cnblogs.com/liyey/p/11573505.html