묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
asp 로긴 부분..
2004.10.28 01:06
3일째 고생 쳐다보고 있는데 모가 틀린것인지 잘 모르겟네여 ㅠㅠ*
이상하게 첫 화면이 테이블들이 막 깨져서 나와요..
근데 로긴하면 또 똑바로 나오고요............
정말 답답해요 ㅠㅠ*
<%
Set db = Server.CreateObject("ADODB.Connection")
db.Open("2f")
Set rs = Server.CreateObject("ADODB.RecordSet")
sql = "select mem_id,mem_name,mem_pwd,mem_email from member where mem_id='" & request("id") & "'"
rs.Open sql,db
if (rs.EOF or rs.BOF) then
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<table width="1000" height="760" border="1" cellpadding="0" cellspacing="1" bordercolor="#990000">
<tr>
<td height="250" colspan="2"><div align="center">
<table width="950" height="240" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#000099">
<tr>
<td width="182" height="40"> </td>
<td colspan="2">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap> </td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">home</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">학습하기</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">학습평가</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">Q&A</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">테마과학</font></div></td>
<td width="70" height="30" nowrap> </td>
</tr>
</table></td>
<td width="58"> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="4" cellspacing="2">
<tr>
<% if session("id") ="" then %>
<form method="post" action="login_ok.asp">
<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="171"
style="border: 0 none rgb(0,0,128)">
<tr>
<td height="50" colspan="2" align="center" width="171"><div align="center"><center><p><font
face="굴림" size="5" color="#004080"><strong>로그인</strong></font></center>
</div>
</td>
</tr>
<tr>
<td height="10" width="58"><center><p><font face="돋움" size="2">ID</font></center>
</div>
</td>
<td height="10" width="113" align="center"><input name="id" size="10" value=""></td>
</tr>
<tr>
<td height="25" width="58"><center><p><font face="돋움" size="2">비밀번호</font></center>
</td>
<td height="25" width="113" align="center"><input type="password" name="pwd" size="10"></td>
</tr>
<tr align="center">
<td height="30" colspan="2" width="171"><div align="center"><center><p><input type="submit"
value=" OK " name="B1"
style="BACKGROUND-COLOR: rgb(0,53,106); COLOR: rgb(255,255,255); FONT-WEIGHT: bold"></center>
</div>
</td>
</tr>
</table>
<br>
<a href="regist.htm"><font face="돋움" size="2">* 회원 가입</font></a><br>
<a href="lost_id.asp"><font face="돋움" size="2">* ID 분실</font></a>
<a href="lost_pw.asp"><font face="돋움" size="2">* 비밀번호 분실</font></a>
</center></form>
<% else %>
<p align="left"><font face="돋움" size="5" color="#ff0fff"><%=session("id")%></font><font face="돋움" size="2"> 님 환영합니다.</font></p>
<p align="left"><font face="돋움" size="2">* <a href="mem_edit.asp">개인정보수정</a></font></p>
<p align="left"><font face="돋움" size="2">* <a href="mem_del.asp">회원 탈퇴</a></font></p>
<p align="left"><font face="돋움" size="2">* <a href="log_out.asp">Log-out</a></font></p>
<% if session("id")="admin" then %>
<p align="left"><font face="돋움" size="2">★ <a href="show_mem.asp">회원 목록 보기</a></font><br>
<% end if %>
</tr>
<% end if %> <% end if %>
</tr>
</table></td>
<td width="20" rowspan="2"><font color="#FFFFFF">
</font></td>
<td width="690" rowspan="2" bgcolor="#0099CC"><div align="center"><font color="#FFFFFF"><strong>플래쉬~</strong><strong>플래쉬~</strong></font></div></td>
<td width="58" rowspan="2" bgcolor="#FFFFFF"><div align="center"><font color="#FFFFFF"></font></div></td>
</tr>
<tr>
<td width="182"> </td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td width="227"> </td>
<td width="770"> </td>
</tr>
</table>
</body>
</html>
이상하게 첫 화면이 테이블들이 막 깨져서 나와요..
근데 로긴하면 또 똑바로 나오고요............
정말 답답해요 ㅠㅠ*
<%
Set db = Server.CreateObject("ADODB.Connection")
db.Open("2f")
Set rs = Server.CreateObject("ADODB.RecordSet")
sql = "select mem_id,mem_name,mem_pwd,mem_email from member where mem_id='" & request("id") & "'"
rs.Open sql,db
if (rs.EOF or rs.BOF) then
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<table width="1000" height="760" border="1" cellpadding="0" cellspacing="1" bordercolor="#990000">
<tr>
<td height="250" colspan="2"><div align="center">
<table width="950" height="240" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#000099">
<tr>
<td width="182" height="40"> </td>
<td colspan="2">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap> </td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">home</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">학습하기</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">학습평가</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">Q&A</font></div></td>
<td width="70" height="30" nowrap><div align="center"><font size="-1">테마과학</font></div></td>
<td width="70" height="30" nowrap> </td>
</tr>
</table></td>
<td width="58"> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="4" cellspacing="2">
<tr>
<% if session("id") ="" then %>
<form method="post" action="login_ok.asp">
<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="171"
style="border: 0 none rgb(0,0,128)">
<tr>
<td height="50" colspan="2" align="center" width="171"><div align="center"><center><p><font
face="굴림" size="5" color="#004080"><strong>로그인</strong></font></center>
</div>
</td>
</tr>
<tr>
<td height="10" width="58"><center><p><font face="돋움" size="2">ID</font></center>
</div>
</td>
<td height="10" width="113" align="center"><input name="id" size="10" value=""></td>
</tr>
<tr>
<td height="25" width="58"><center><p><font face="돋움" size="2">비밀번호</font></center>
</td>
<td height="25" width="113" align="center"><input type="password" name="pwd" size="10"></td>
</tr>
<tr align="center">
<td height="30" colspan="2" width="171"><div align="center"><center><p><input type="submit"
value=" OK " name="B1"
style="BACKGROUND-COLOR: rgb(0,53,106); COLOR: rgb(255,255,255); FONT-WEIGHT: bold"></center>
</div>
</td>
</tr>
</table>
<br>
<a href="regist.htm"><font face="돋움" size="2">* 회원 가입</font></a><br>
<a href="lost_id.asp"><font face="돋움" size="2">* ID 분실</font></a>
<a href="lost_pw.asp"><font face="돋움" size="2">* 비밀번호 분실</font></a>
</center></form>
<% else %>
<p align="left"><font face="돋움" size="5" color="#ff0fff"><%=session("id")%></font><font face="돋움" size="2"> 님 환영합니다.</font></p>
<p align="left"><font face="돋움" size="2">* <a href="mem_edit.asp">개인정보수정</a></font></p>
<p align="left"><font face="돋움" size="2">* <a href="mem_del.asp">회원 탈퇴</a></font></p>
<p align="left"><font face="돋움" size="2">* <a href="log_out.asp">Log-out</a></font></p>
<% if session("id")="admin" then %>
<p align="left"><font face="돋움" size="2">★ <a href="show_mem.asp">회원 목록 보기</a></font><br>
<% end if %>
</tr>
<% end if %> <% end if %>
</tr>
</table></td>
<td width="20" rowspan="2"><font color="#FFFFFF">
</font></td>
<td width="690" rowspan="2" bgcolor="#0099CC"><div align="center"><font color="#FFFFFF"><strong>플래쉬~</strong><strong>플래쉬~</strong></font></div></td>
<td width="58" rowspan="2" bgcolor="#FFFFFF"><div align="center"><font color="#FFFFFF"></font></div></td>
</tr>
<tr>
<td width="182"> </td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td width="227"> </td>
<td width="770"> </td>
</tr>
</table>
</body>
</html>