글 작성 후 업로드시 '제목을 입력하세요' 라고 나와요...
관련링크
본문
글 작성하고 확인 누르면
'제목을 입력하세요' 라고 나꾸 뜨네요... ㅠㅠ
참가신청서 양식인데 문항 몇개 추가했더니 계속 제목쓰라고 오류뜹니다...
네임설정도 순서대로 한 것 같은데....
대체 어디가 잘못된건지 도저히 못 찾겠습니다.... 살려주세요...........
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" rel="stylesheet" />
<style type="text/css">
<!--
.ui-datepicker { font:12px dotum; }
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year { width: 70px;}
.ui-datepicker-trigger { margin:0 0 -5px 2px; }
-->
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
<script type="text/javascript">
/* Korean initialisation for the jQuery calendar extension. */
/* Written by DaeKwon Kang (*** 개인정보보호를 위한 이메일주소 노출방지 ***). */
jQuery(function($){
$.datepicker.regional['ko'] = {
closeText: '닫기',
prevText: '이전달',
nextText: '다음달',
currentText: '오늘',
monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)',
'7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'],
monthNamesShort: ['1월','2월','3월','4월','5월','6월',
'7월','8월','9월','10월','11월','12월'],
dayNames: ['일','월','화','수','목','금','토'],
dayNamesShort: ['일','월','화','수','목','금','토'],
dayNamesMin: ['일','월','화','수','목','금','토'],
weekHeader: 'Wk',
dateFormat: 'yymmdd',
firstDay: 0,
isRTL: false,
showMonthAfterYear: true,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['ko']);
$('#wr_1').datepicker({
showOn: 'button',
buttonImage: '<?=$g4[path]?>/img/calendar.gif',
buttonImageOnly: true,
buttonText: "달력",
changeMonth: true,
changeYear: true,
showButtonPanel: true,
yearRange: 'c-99:c+99',
maxDate: '+0d'
});
});
</script>
<?
//==============================================================================
?>
<style type="text/css">
<!--
.m_title { BACKGROUND-COLOR: #F7F7F7; PADDING-LEFT: 15px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
.m_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.m_padding2 { PADDING-LEFT: 0px; PADDING-top: 5px; PADDING-BOTTOM: 0px; }
.m_padding3 { PADDING-LEFT: 0px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
-->
</style>
<script>
var member_skin_path = "<?=$member_skin_path?>";
</script>
<script type="text/javascript" src="<?=$member_skin_path?>/ajax_register_form.jquery.js"></script>
<script type="text/javascript" src="<?=$g4[path]?>/js/md5.js"></script>
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<div style="height:14px; line-height:1px; font-size:1px;"> </div>
<style type="text/css">
.write_head { height:30px; text-align:justify"; text-justify:inter-cluster; color:#666666; font-weight:bold}
.write_head2 { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
.del_input { border:1px #999999 solid; padding:5px; background-color:#BBBBBB; color:#FFFFFF; font-size:9pt; font-family:돋움; font-weight:bold; cursor:pointer; }
</style>
<script type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name="btn_list" id="btn_list">
<input type=hidden name="wr_password" id="wr_password">
<input type=hidden name="wr_2" id="wr_2">
<input type=hidden name="wr_10" id="wr_10">
<input type=hidden name="ca_name" id="ca_name">
<input type=hidden name="wr_option" id="wr_option">
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
<div style="font-family:돋움; font-weight:bold; font-size:14px; margin:7px 0 0 10px;"> </div>
</div>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=110>
<colgroup width=''>
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td></tr>
<tr><td colspan="2" height="200" align="center"><br>
<div style="width:650px; height:170px; border:1px solid #CCCCCC; padding:10px; background-color:#ffffff"><?include_once("../html/privacy.php");?></div>
<div style="text-align:right; margin-top:5px; padding-right:7px"><input type="checkbox" id="privacy_confirm" name="privacy_confirm"> 위 내용에 동의합니다.</div><br><br>
</td>
</tr>
<? if ($is_category && $is_admin) { ?>
<tr>
<td class=write_head>구 분</td>
<td>
<select name=ca_name required itemname="구분"><option value="">선택하세요<?=$category_option?></select>
<input type=radio id=unreg name=ca_name value="미납"> 미납
<input type=radio id=reg name=ca_name value="등록" style="margin-left:30px"> 등록
<?
if($write[ca_name]){
if($write[ca_name] == "미납"){
?>
<script>document.getElementById('unreg').checked = true;</script>
<?}else{?>
<script>document.getElementById('reg').checked = true;</script>
<?}}?>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_admin) { ?>
<script>document.getElementById('privacy_confirm').checked = true;</script>
<? } ?>
<? if ($is_name) { ?>
<tr>
<td class=write_head><span style="color:red">*</span> 이 름(한글)</td>
<td><input class='ed' maxlength=20 size=50 id=wr_name name=wr_name itemname="이름" required value="<?=$write[wr_10]?>" tabindex=1></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<tr>
<td class=write_head><span style="color:red">*</span> 이 름(영문)</td>
<td><input class='ed' maxlength=20 size=50 name=wr_11 itemname="name" required value="<?=$write[wr_11]?>" tabindex=2></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 생년월일</td>
<td><input id=wr_1 name=wr_1 class='ed' maxlength=100 size=9 itemname="생년월일" value="<?=$write[wr_1]?>" tabindex=3 readonly alt="오른쪽 달력 이미지를 클릭하세요!" onclick="javascript:document.getElementById('shown_tip').style.display='';" onkeypress="javascript:document.getElementById('shown_tip').style.display='';" onfocus="this.blur();">
<span id="shown_tip" style="font-size:10pt; font-family:돋움; color:orangered; display:none">달력 이미지를 클릭하세요!</span>
<a href="#del_date" name="del_date" class="del_input" onclick="document.getElementById('shown_tip').style.display='none' ; document.getElementById('wr_1').value=''">지우기</a>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 여권번호</td>
<td><input class='ed' maxlength=100 size=50 name=wr12 itemname="여권번호" required value="<?=$write[wr_12]?>" tabindex=4></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 여권만료일자</td>
<td><input class='ed' maxlength=100 size=50 name=wr_13 itemname="여권만료일자" required value="<?=$write[wr_13]?>" tabindex=5></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 학교</td>
<td><input class='ed' maxlength=100 size=50 name=wr_14 itemname="학교" required value="<?=$write[wr_14]?>" tabindex=6></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 학년</td>
<td><input class='ed' maxlength=100 size=50 name=wr_15 itemname="학년" required value="<?=$write[wr_15]?>" tabindex=7></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 성별</td>
<td>
<input type="radio" maxlength=100 size=50 id="male" name=wr_sex itemname="성별" tabindex=8 value="male"> 남자
<input type="radio" maxlength=100 size=50 id="female" name=wr_sex itemname="성별" tabindex=9 value="female"> 여자
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<?
switch ($write[wr_2]){
case "male" :
echo "<script>document.getElementById('male').checked = true;</script>";
break;
case "female" :
echo "<script>document.getElementById('female').checked = true;</script>";
break;
default :
echo "<script>document.getElementById('male').checked = false;</script>";
echo "<script>document.getElementById('female').checked = false;</script>";
break;
}
?>
<?/* if ($is_password) { ?>
<tr>
<td class=write_head>패스워드</td>
<td><input class='ed' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? }*/ ?>
<tr>
<td class=write_head><span style="color:red">*</span> 현주소</td>
<td><input class='ed' maxlength=100 size=50 name=wr_3 itemname="현주소" required value="<?=$write[wr_3]?>" tabindex=8></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 참가자 연락처</td>
<td><input class='ed' maxlength=100 size=50 name=wr_4 itemname="휴대폰 번호" required value="<?=$write[wr_4]?>" tabindex=8></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 비상연락처</td>
<td><input class='ed' maxlength=100 size=50 name=wr_5 itemname="회사 연락처" required value="<?=$write[wr_5]?>" tabindex=9></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? if ($is_email) { ?>
<tr>
<td class=write_head><span style="color:red">*</span> 이메일</td>
<td><input class='ed' maxlength=100 size=50 name="wr_email" id="wr_email" email itemname="이메일" required value="<?=$write[wr_email]?>" tabindex=10></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<tr>
<td class=write_head><span style="color:red">*</span> 해당국가 방문경험 유무</td>
<td>
<input type="radio" maxlength=100 size=50 id="Camp" name=wr_8 itemname="해당국가 방문경험 유무" tabindex=10 value="Camp"> 캠프 및 연수
<input type="radio" maxlength=100 size=50 id="Tour" name=wr_8 itemname="해당국가 방문경험 유무" tabindex=11 value="Tour"> 여행
<input type="radio" maxlength=100 size=50 id="Etc" name=wr_8 itemname="해당국가 방문경험 유무" tabindex=12 value="Etc"> 기타
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head><span style="color:red">*</span> 캠프신청 경로</td>
<td>
<input type="radio" maxlength=100 size=50 id="Camp" name=wr_9 itemname="캠프신청 경로" tabindex=13 value="Website"> 웹사이트
<input type="radio" maxlength=100 size=50 id="Tour" name=wr_9 itemname="캠프신청 경로" tabindex=14 value="Brochure"> 브로슈어
<input type="radio" maxlength=100 size=50 id="Etc" name=wr_9 itemname="캠프신청 경로" tabindex=15 value="Ad"> 방송/매체
<input type="radio" maxlength=100 size=50 id="Etc" name=wr_9 itemname="캠프신청 경로" tabindex=16 value="Etc"> 기타
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td class=write_head2>기념티셔츠 사이즈</td>
<td><input class='ed' maxlength=100 size=50 name=wr_16 itemname="기념티셔츠 사이즈" value="<?=$write[wr_16]?>" tabindex=17>
<span style="color:#999999; font-size:11px; font-family:'맑은 고딕'">예) 아동용 140~160 / 성인용 XS(85) ~ XXL(110) </span></td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr>
<td class=write_head2>특이사항 및 전달사항</td>
<td><textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all; resize:none' rows=10 itemname="남기고 싶은 말" tabindex=18><?=$content?></textarea></td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
if ($is_notice) {
$option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "<input type=hidden value='html1' name='html'>";
} else {
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
}
}
if ($is_secret) {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
/*
if ($is_admin || $is_secret==1) {
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
} else {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
}
*/
}
if ($is_mail) {
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
}
}
echo $option_hidden;
/*
if ($option) {
?>
<tr>
<td class=write_head>옵 션</td>
<td><?=$option?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
답변 1
wr_subject는 어디에있져?
해당 input에 제목이 들어가야 할텐데
삭제하시고 수정하시고 계시는거아닌가요?
말씀하신데로 제목을 입력하지 않았기때문에 뜨는 알림입니다.
제목을 강제로 넣어주시거나
제목을 넣는 input을 다른것으로 바꾸어 쓰시면 될듯하네요