기본 베이직 글쓰기 화면에서 전화번호 입력 항목을 추가할려고 합니다.
본문
기본 베이직 글쓰기입니다. 여기서 홈페이지 부분 바로 위에 전화 번호 입력 칸을 하나 더 넣으려고
하는데요.
<div class="tbl_frm01 tbl_wrap">
<table>
<tbody>
<?php if ($is_name) { ?>
<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>
<?php } ?>
<?php if ($is_password) { ?>
<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>
<?php } ?>
<?php if ($is_email) { ?>
<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>
<?php } ?>
---------추가할 부분-------------------
<?php if ($is_wr_1) { ?>
<tr>
<th scope="row"><label for="wr_1">홈페이지</label></th>
<td><input type="text" name="wr_1" value="<?php echo $wr_1 ?>" id="wr_1" class="frm_input" size="50"></td>
</tr>
<?php } ?>
-------------------------------------
저렇게 바꿧더니 홈페이지에서 추가할 부분이 나오지 않고 있습니다.
바로밑에 있는 is_homepage 텍스트 복사하여 wr_1로 수정하였습니다.
제가 개념도 모르고 수정하다보니 추가한 내용의 입력칸이 나오고 있지 않습니다.
<?php if ($is_homepage) { ?>
<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>
<?php } ?>
도움좀 부탁 드립니다. 꾸벅....ㅜ.ㅜ."
답변 3
<tr>
<th scope="row"><label for="wr_1">홈페이지</label></th>
<td><input type="text" name="wr_1" value="<?php echo $wr_1 ?>" id="wr_1" class="frm_input" size="50"></td>
</tr>
<tr>
<th scope="row"><label for="wr_1">전화번호</label></th>
<td>
<input type="text" size="4" class="frm_input" name="tel1">
<input type="text" size="4" class="frm_input" name="tel2">
<input type="text" size="4" class="frm_input" name="tel3">
</td>
</tr>
update.skin.php 쪽에서
$wr_1 = "$tel1-$tel2-$tel3";
sql_query("update ~~~ ");