일반페이지에 로그인달때 로그인후 이동할페이지~~ 정보
일반페이지에 로그인달때 로그인후 이동할페이지~~
본문
로그인후에 이동할페이지를 지정할려면 어떻게해야되나요?
아래는 로그인창 소스입니다..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
<table cellpadding="0" cellspacing="0" width="100%" align="center">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$urlencode?>">
<tr>
<td width="10" height="40" ><img src="<?=$outlogin_skin_path?>/img/l_line.gif"></td>
<td width="100%" height="40" background="<?=$outlogin_skin_path?>/img/c_line.gif">
<table cellpadding="0" cellspacing="0" width="100%" align="left">
<tr>
<td width="75" height="30">
<input name="mb_id" type="text" size="10" maxlength="20" required itemname="아이디" value='아이디' style="border-width:1px; border-color:#ff91dc; background-color:#ff91dc; border-style:solid; width:70px; height:18px; COLOR: #282828;" onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);'>
</td>
<td id=pw1 width="75" height="30"><input type="text" size="10" maxlength="20" required itemname="비밀번호" value='●●●●●' style="border-width:1px; border-color:#ff91dc; background-color:#ff91dc; border-style:solid; width:70px; height:18px; COLOR: #282828;" onMouseOver='chkReset(this.form);'
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$urlencode?>">
<tr>
<td width="10" height="40" ><img src="<?=$outlogin_skin_path?>/img/l_line.gif"></td>
<td width="100%" height="40" background="<?=$outlogin_skin_path?>/img/c_line.gif">
<table cellpadding="0" cellspacing="0" width="100%" align="left">
<tr>
<td width="75" height="30">
<input name="mb_id" type="text" size="10" maxlength="20" required itemname="아이디" value='아이디' style="border-width:1px; border-color:#ff91dc; background-color:#ff91dc; border-style:solid; width:70px; height:18px; COLOR: #282828;" onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);'>
</td>
<td id=pw1 width="75" height="30"><input type="text" size="10" maxlength="20" required itemname="비밀번호" value='●●●●●' style="border-width:1px; border-color:#ff91dc; background-color:#ff91dc; border-style:solid; width:70px; height:18px; COLOR: #282828;" onMouseOver='chkReset(this.form);'
onfocus='chkReset(this.form);'></td>
<td id=pw2 style='display:none;' width="75" height="30">
<input name="mb_password" type="password" size="10" maxlength="20" required itemname="비밀번호" style="border-width:1px; border-color:#ff91dc; background-color:#ff91dc; border-style:solid; width:70px; height:18px; COLOR: #005b85;" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'>
</td>
<td width="10" height="30"> </td>
<td w width="2">
</td>
<td width="44" height="30" valign="middle">
<input type="image" src="<?=$outlogin_skin_path?>/img/login.gif" border="0"></td>
<td width="57" height="30" valign="middle">
<a href="javascript:win_password_forget();"><img src="<?=$outlogin_skin_path?>/img/id_pw.gif" border="0"></a></td>
<td width="90" height="30" valign="middle">
<a href="<?=$g4[bbs_path]?>/register.php"><img src="<?=$outlogin_skin_path?>/img/join.gif" border="0"></a></td>
<td align="right"> </td>
</tr>
</table>
</td>
<td width="10" height="40" align="right" ><img src="<?=$outlogin_skin_path?>/img/r_line.gif"></td>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
f.action = "<?=$g4[bbs_path]?>/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
<td id=pw2 style='display:none;' width="75" height="30">
<input name="mb_password" type="password" size="10" maxlength="20" required itemname="비밀번호" style="border-width:1px; border-color:#ff91dc; background-color:#ff91dc; border-style:solid; width:70px; height:18px; COLOR: #005b85;" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'>
</td>
<td width="10" height="30"> </td>
<td w width="2">
</td>
<td width="44" height="30" valign="middle">
<input type="image" src="<?=$outlogin_skin_path?>/img/login.gif" border="0"></td>
<td width="57" height="30" valign="middle">
<a href="javascript:win_password_forget();"><img src="<?=$outlogin_skin_path?>/img/id_pw.gif" border="0"></a></td>
<td width="90" height="30" valign="middle">
<a href="<?=$g4[bbs_path]?>/register.php"><img src="<?=$outlogin_skin_path?>/img/join.gif" border="0"></a></td>
<td align="right"> </td>
</tr>
</table>
</td>
<td width="10" height="40" align="right" ><img src="<?=$outlogin_skin_path?>/img/r_line.gif"></td>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
f.action = "<?=$g4[bbs_path]?>/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
댓글 전체
아..있었군요..감사합니다.