I using the value pass from url to open a new page but there are some mistakes,
but I cannot find them
here is my all files to do that:
main.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<%
check = "ok"
%>
<body>
<table width="100%" >
<tr>
<td colspan="3" bgcolor="#990033">
<!--#include file="header.asp"-->
</td>
</tr>
<tr>
<td width="20%" with="20%"><!--#include file="left.asp"--></td>
<td width="55%" bgcolor="#CCCCCC" with="60%">
<!--#include file="dynamic_site.asp"-->
</td>
<td width="25%" >
<!--#include file="right.asp"-->
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#0000FF">
<!--#include file="footter.asp"-->
</td>
</tr>
</table>
</body>
</html>
dynamic_site.asp
<%
module = Request.QueryString("mod")
action = Request.QueryString("do")
select case module
case "employer"
if(action="site") then
%>
<!--#include file="employerSite.asp"-->
<%
end if
if (action="profile") then
%>
<!--#include file="employerProfile.asp"-->
<%
end if
case "user"
if(action="search") then
%>
<!--#include file="search.asp"-->
<%
end if
case else '
%>
<!--#include file="main.asp"-->
<%
end select
%>
header.asp
Header
footer.asp
Footer
right.asp
Right
left.asp
<a href="?mod=employer&do=site" >Employer site</a><br/>
<a href="?mod=employer&do=profile" >Employer profile</a><br>
<a href="?mod=user&do=search">Search</a><br/>
employerSite.asp
<h3>Area for employer only!</h3><hr />
*********<a href="?mod=employer&do=register">Register</a>
*********<a href="?mod=employer&do=manage">Manage profile</a>
employerProfile.asp
Profile
search.asp
search
I think the problem in the dynamic_site.asp, but I dont' find any thing wrong with it!