묻고답하기
폼 상담신청 오류
2015.07.16 11:38
홈페이지 메인에 빠른상담 신청폼을 만들어서
아이프레임으로 보여주는 구조입니다.
xe질문게시판에 찾아보니 누군가 구현을 해놨더라구요
밑에 태그중 빨간글씨부분에 이름 작성란이 있는데 여기 변수를 nick-name으로 되어있는데 이거 삭제하고
폼 추가해서 name으로 사용할려고 하거든요.
빨간 글씨 부분을 다 지우고 폼추가해서 작동되는지 보는데
관리자모드에서는 글이 써지는데, 비회원으로 글쓸경우 잘못된 접근입니다라고 나오네요
<!-- 게시물 작성 폼 -->
<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}" />
<div class="titleHeader"><span class="black">개인회생/파산</span> <span class="white">무료 상담신청</span></div>
<div class="iframeForm">
<!--@if(!$is_logged)-->
<div class="textGroup">
<div class="titleName">
<label for="userName">이름<span class="red">*</span></label>
</div>
<input type="text" name="nick_name" value="{$oDocument->getNickName()}" class="userName inputText" id="userName"/>
</div>
<div class="textGroup">
<div class="titleName">
<label for="userPw">비밀번호<span class="red">*</span></label>
</div>
<input type="password" name="password" value="" 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')--><span class="red">*</span><!--@end-->
</div>
<div class="ext">
{$val->getFormHTML()}
</div>
</div>
<!--@endforeach-->
<!--@endif-->
{$oDocument->getEditor()}
<input type="submit" class="submit" value="빠른상담 신청하기" accesskey="s" />
</form>
<!--@else-->
<!--#include("header.html")-->
<!-- 게시물 작성 폼 -->
<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}" />
<div class="boardWrite">
<!--@if(!$is_logged)-->
<div class="userNameAndPw">
<label for="userName">{$lang->writer}</label>
<input type="text" name="nick_name" value="{$oDocument->getNickName()}" class="userName inputTypeText" id="userName"/>
<label for="userPw">{$lang->password}</label>
<input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />
<label for="emailAddress">{$lang->email_address}</label>
<input type="text" name="email_address" value="{htmlspecialchars($oDocument->get('email_address'))}" id="emailAddress" class="emailAddress inputTypeText"/>
<label for="homePage">{$lang->homepage}</label>
<input type="text" name="homepage" value="{htmlspecialchars($oDocument->get('homepage'))}" id="homePage" class="homePage inputTypeText"/>
</div>
<!--@end-->
<div class="title">
<!--@if($module_info->use_category=="Y")-->
<select name="category_srl" class="category">
<option value="">{$lang->category}</option>
<!--@foreach($category_list as $val)-->
<option <!--@if(!$val->grant)-->disabled="disabled"<!--@endif--> value="{$val->category_srl}" <selected="selected"{C}selected="selected">{$lang->title_color}!--@if($oDocument->get('title_color')==$_col)-->selected="selected"<!--@end-->>{$lang->title_color}</option>
<!--@endforeach-->
</select></dd>
<dd>
<input type="checkbox" name="title_bold" id="title_bold" value="Y" <!--@if($oDocument->get('title_bold')=='Y')-->checked="checked"<!--@end--> />
<label for="title_bold">{$lang->title_bold}</label>
</dd>
<dd>
<input type="checkbox" name="is_notice" value="Y" <checked="checked"checked="checked"checked="checked"checked="checked"checked="checked"*!--@if($val->is_required=='Y')-->*<!--@end--></th>
<td>{$val->getFormHTML()}</td>
</tr>
<!--@endforeach-->
</table>
<!--@endif-->
<div class="editor">{$oDocument->getEditor()}</div>
<div class="tag">
<input type="text" name="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="inputTypeText" />
<p class="info">{$lang->about_tag}</p>
</div>
</div>
<div class="fl gap1">
<!--@if($is_logged)-->
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_temp_save}" onclick="doDocumentSave(this); return false;" /></span>
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_load}" onclick="doDocumentLoad(this); return false;" /></span>
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','')}'" /></span>
<!--@end-->
</div>
<div class="fr gap1">
<span class="button {$btn_class}"><input type="button" value="{$lang->cmd_preview}" onclick="doDocumentPreview(this); return false;" /></span>
<span class="button {$btn_class}"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</div>
<div class="clear"></div>
</form>
<!--#include("footer.html")-->
<!--@end-->