묻고답하기
글쓰기 후 페이지이동
2016.04.09 12:56
<!-- 게시물 작성 폼 -->
<form action="./" method="post" onsubmit="return procFilter(this, insert)" id="fo_write">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
<input type="hidden" name="document_srl" value="{$document_srl}" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-top:15px; ">
<tr>
<td width="20%"><div class="textGroup">
<div class="titleName1">
<label for="userName">대 표 전 화<br>
02)889-2822</label>
</div>
</div>
</div></td>
<td width="60%"><div class="iframeForm">
<!--@if(!$is_logged)-->
<div class="textGroup">
<div class="titleName">
<label for="userName">이름</label>
</div>
<input type="text" name="nick_name" value="{$oDocument->getNickName()}" class="userName inputText" id="userName"/>
</div>
<div class="textGroup">
<input type="hidden" name="password" value="1111" id="userPw" class="userPw inputText" />
</div>
<!--@end-->
<div class="textGroup none">
<div class="titleName">
<label class="title">{$lang->title}</label>
</div>
<input type="text" name="title" class="title inputText" value="문의하기" />
</div>
<!--@if(count($extra_keys))-->
<!--@foreach($extra_keys as $key => $val)-->
<div class="textGroup">
<div class="titleName">
{$val->name} <!--@if($val->is_required=='Y')--><!--@end-->
</div>
<div class="ext">
{$val->getFormHTML()}
</div>
</div>
<!--@endforeach-->
<!--@endif-->
<div class="textGroup">
<div class="titleName">
<label for="userName">내용</label>
</div>
{$oDocument->getEditor()}
</div>
</div>
</td>
<td width="20%">
<input name="" type="checkbox" required value="">
<span class="style1">개인정보수집에 동의합니다.</span><br><br>
<input type="submit" class="submit" value="문의하기" accesskey="s" onClick="alert('정상적으로 작성되었습니다.');location.href='/?mid=page_ukdO18'" />
</form></td>
</tr>
</table>
위에 색찰된 부분을 하니 입력창에 입력을 안해도 그냥 넘어가버리네요 방법조 ㅁ알려주세요 ㅜㅜ
<form action="./" method="post" onsubmit="return procFilter(this, insert)" id="fo_write">
안쪽에
<input type="hidden" name="success_return_url" value="http://url.com" />
하시고 넘어간 url의 페이지안에 alert 창을 띄워보심이 어떨까싶네요.