답변 1개
전제 조건
1. 회원가압을 하고 로그인 한 상 태
/bbs/login_check.php
// 회원아이디 세션 생성
set_session('mb_level', $mb['mb_level']);
set_session('ss_mb_id', $mb['mb_id']);
set_session('ss_http://ruwa64-078.fmcity.com/WebMysql/sql.php?db=cjlove_wc15&table=g5_member&token=7b40a23cdb61916dae1e2d21d99c2540&sql_query=SELECT+%2A+FROM+%60g5_member%60+ORDER+BY+%60g5_member%60.%60mb_email%60+ASC">mb_email' , $mb[http://ruwa64-078.fmcity.com/WebMysql/sql.php?db=cjlove_wc15&table=g5_member&token=7b40a23cdb61916dae1e2d21d99c2540&sql_query=SELECT+%2A+FROM+%60g5_member%60+ORDER+BY+%60g5_member%60.%60mb_email%60+ASC">mb_email ]);
set_session('ss_mb_id', $mb['mb_homepage']);
set_session('ss_mb_tel', $mb['mb_tel']);
set_session('ss_mb_hp', $mb['mb_hp']);
/skin/bood/basic/write.skin.php
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="wr_1">전화1</label></th>
<td><input type="text" name="wr_1" value="<?php echo $ss_mb_tel ?>" id="wr_1" size="50" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="wr_2">전화2</label></th>
<td><input type="text" name="wr_2" value="<?php echo $ss_mb_hp?>" id="wr_2" size="50" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="wr_email">이메일</label></th>
<td><input type="text" name="wr_email" value="<?php echo $ss_mb_email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
<td><input type="text" name="wr_homepage" value="<?php echo $mb_homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
</tr>
2. 회원가입이 없고 아무나 글쓸때
/skin/bood/basic/write.skin.php
60번째
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="wr_1">전화1</label></th>
<td><input type="text" name="wr_1" value="<?php echo $write[wr_1] ?>" id="wr_1" size="50" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="wr_2">전화2</label></th>
<td><input type="text" name="wr_2" value="<?php echo $write[wr_2] ?>" id="wr_2" size="50" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="wr_3">전화3</label></th>
<td><input type="text" name="wr_3" value="<?php echo $write[wr_3] ?>" id="wr_3" size="50" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="wr_email">이메일</label></th>
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
</tr>
대충 이런식인데요
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인