테스트 사이트 - 개발 중인 베타 버전입니다

[왕초보]이 소스코드가 무슨의미인가요?ㅠ

나뚜룽 5년 전 조회 1,778

</p>

<p>/* 게시판 쓰기 */

#char_count_desc {display:block;margin:0 0 5px;padding:0}

#char_count_wrap {margin:5px 0 0;text-align:right}

#char_count {font-weight:bold}</p>

<p>#autosave_wrapper {position:relative}

#autosave_pop {display:none;z-index:10;position:absolute;top:24px;right:117px;padding:8px;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;overflow-y:scroll}

html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */

#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}

#autosave_pop div {text-align:right}

#autosave_pop button {margin:0;padding:0;border:0;background:transparent}

#autosave_pop ul {margin:10px 0;padding:0;border-top:1px solid #e9e9e9;list-style:none}

#autosave_pop li {padding:8px 5px;border-bottom:1px solid #e9e9e9;zoom:1}

#autosave_pop li:after {display:block;visibility:hidden;clear:both;content:""}

#autosave_pop a {display:block;float:left}

#autosave_pop span {display:block;float:right}

.autosave_close {cursor:pointer}

.autosave_content {display:none}</p>

<p>.required2{ color:red;padding-right:10px;}

select {border:1px solid #c8c8c8;}

textarea {border:1px solid #c8c8c8;width:98%;height:100px ;background-color:#FFFFFF; padding:10px;}

</style></p>

<p>

    <form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">

    <input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">

    <input type="hidden" name="w" value="<?php echo $w ?>">

    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">

    <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">

    <input type="hidden" name="sca" value="<?php echo $sca ?>">

    <input type="hidden" name="sfl" value="<?php echo $sfl ?>">

    <input type="hidden" name="stx" value="<?php echo $stx ?>">

    <input type="hidden" name="spt" value="<?php echo $spt ?>">

    <input type="hidden" name="sst" value="<?php echo $sst ?>">

    <input type="hidden" name="sod" value="<?php echo $sod ?>">

    <input type="hidden" name="page" value="<?php echo $page ?>">

        <input type="hidden" name="wr_password" value="">

        <input type="hidden" id="secret" name="secret" value="secret">

<?php if ($is_guest) { ?>

           <input type="hidden" name="wr_name" value="GUEST" id="wr_name" required class="frm_input required" size="10" maxlength="20" style="width:180px" > 

                        <?php } ?></p>

<p><?</p>

<p>if($wr_6<>""){

    $wr_6_arr = explode("-",$wr_6);

    $phone_1=$wr_6_arr[0];

    $phone_2=$wr_6_arr[1];

    $phone_3=$wr_6_arr[2];

}</p>

<p>if($wr_8<>""){</p>

<p>    $wr_8_arr = explode("!@#",$wr_8);

    $wr_8_0=$wr_8_arr[0];

    $wr_8_1=$wr_8_arr[1];

    $wr_8_2=$wr_8_arr[2];

    $wr_8_3=$wr_8_arr[3];

    $wr_8_4=$wr_8_arr[4];

    $wr_8_5=$wr_8_arr[5];

}</p>

<p>if($wr_9<>""){</p>

<p>    $wr_9_arr = explode("!@#",$wr_9);

    $wr_9_0=$wr_9_arr[0];

    $wr_9_1=$wr_9_arr[1];

}

?></p>

<p>

댓글을 작성하려면 로그인이 필요합니다.

답변 4개

글입력받는곳인데 위쪽 css 는 자동저장 기능 관련 css 이고

아래 배열 부분은 휴대폰번호 및 정보를 나누어 받아 한 컬럼에 처리하기 위함이네요.

쉽게 말해서 회원정보 입력받는 쓰기 부분 입니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

s
sinbi Expert
5년 전

모르는 코드로 구글링하시는 게 빠르실 듯...

(예) php explode

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

공감합니다. 이렇게 올리시면 답변을 절대 얻으실 수 없을것같습니다..

 

뭐.. 유추할수있는것은.. 기본인적사항 정보를 받는 페이지인가보네요..

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

d
5년 전

구체적이지 않고 포괄적으로 해당양의 전체 소스를 설명하기는 곤란합니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

나뚜룽
5년 전
죄송합니다. 전체적으로 올려드리겠습니다.
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>



<!-- 글쓰기 기본타입 -->
<style>
input[type=image] { border: 0 none; }
input[type=file] { border: 0 none; }
table{border-collapse:collapse;}

/*쓰기폼 테이블*/
.writeList {width:100%; table-layout:fixed; margin:0; padding:0; }
.writeList tr td {border-bottom:1px solid #e7e7e7; padding:9px 9px 9px 20px; }
.writeList tr td.title span.required2 {font-size:12px; color:#ff3600; font-weight:bold; margin-right:3px; }
.writeList tr td.title {color:#000; padding-left:20px; background:#f3f3f3;}
.writeList tr td.title img {margin-right:5px;}
.writeList tr td.editor {padding:10px 5px 10px 5px;}


/* 게시판 쓰기 */
#char_count_desc {display:block;margin:0 0 5px;padding:0}
#char_count_wrap {margin:5px 0 0;text-align:right}
#char_count {font-weight:bold}

#autosave_wrapper {position:relative}
#autosave_pop {display:none;z-index:10;position:absolute;top:24px;right:117px;padding:8px;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;overflow-y:scroll}
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}
#autosave_pop div {text-align:right}
#autosave_pop button {margin:0;padding:0;border:0;background:transparent}
#autosave_pop ul {margin:10px 0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
#autosave_pop li {padding:8px 5px;border-bottom:1px solid #e9e9e9;zoom:1}
#autosave_pop li:after {display:block;visibility:hidden;clear:both;content:""}
#autosave_pop a {display:block;float:left}
#autosave_pop span {display:block;float:right}
.autosave_close {cursor:pointer}
.autosave_content {display:none}

.required2{ color:red;padding-right:10px;}
select {border:1px solid #c8c8c8;}
textarea {border:1px solid #c8c8c8;width:98%;height:100px ;background-color:#FFFFFF; padding:10px;}
</style>


<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="wr_password" value="">
<input type="hidden" id="secret" name="secret" value="secret">
<?php if ($is_guest) { ?>
<input type="hidden" name="wr_name" value="GUEST" id="wr_name" required class="frm_input required" size="10" maxlength="20" style="width:180px" >
<?php } ?>



<?

if($wr_6<>""){
$wr_6_arr = explode("-",$wr_6);
$phone_1=$wr_6_arr[0];
$phone_2=$wr_6_arr[1];
$phone_3=$wr_6_arr[2];
}

if($wr_8<>""){

$wr_8_arr = explode("!@#",$wr_8);
$wr_8_0=$wr_8_arr[0];
$wr_8_1=$wr_8_arr[1];
$wr_8_2=$wr_8_arr[2];
$wr_8_3=$wr_8_arr[3];
$wr_8_4=$wr_8_arr[4];
$wr_8_5=$wr_8_arr[5];
}

if($wr_9<>""){

$wr_9_arr = explode("!@#",$wr_9);
$wr_9_0=$wr_9_arr[0];
$wr_9_1=$wr_9_arr[1];
}
?>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align:center;height:30px;font-size:20px;font-weight:bold"> 기본 인적 사항</div></td>
</tr>
<tr><td height="5"></td></tr>
<tr>
<td style="text-align:left;"><span style="font-size:20px; color:#ff3600; font-weight:bold; margin-right:3px">*</span><strong>표시는 필수항목입니다.</strong>

</td>
</tr>

<tr><td height="2" style="background-color:#919baa;"></td></tr>
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="writeList">
<col width="40%" />

<col />

<tr>
<td class="title"><span class="required2">*</span>이름</td>
<td colspan=3><input type="text" name="wr_9_0" value="<?php echo $wr_9_0 ?>" id="wr_9_0" required class="frm_input" size="20" style="180px" title="이름" /></td>
</tr>
<tr>
<td class="title"><span class="required2">*</span>휴대폰</td>
<td colspan=3><input type="text" name="phone_1" maxlength="4" size="2" required class="frm_input numeric" style="width:50px" title="휴대폰" value="<?=$phone_1?>" />
- <input type="text" name="phone_2" maxlength="4" size="3" required class="frm_input numeric" style="width:50px" title="휴대폰" value="<?=$phone_2?>" />
- <input type="text" name="phone_3" maxlength="4" size="3" required clas

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인