캡챠 <?php echo captcha_html(); ?> 메인에서 사용
본문
<div class="invite">
<h1>Contact</h1>
<ul>
<li>
<input type="text" name="wr_name" id="wr_name" required class="frm_input required qa_box_in name_img" size="20" maxLength="20" value="name " onfocus="if(this.value=='name '){this.value=''}" onblur="if(this.value==''){this.value='name '}"/>
</li>
<li>
<input type="text" name="wr_1" id="wr_1" required class="frm_input required qa_box_in call_img" size="20" maxLength="20" value="contact number " onfocus="if(this.value=='contact number '){this.value=''}" onblur="if(this.value==''){this.value='contact number '}" />
</li>
<li>
<input type="text" name="wr_2" name="wr_2" class="frm_input required qa_box_in email_img" size="40" maxLength="300" value="email " onfocus="if(this.value=='email '){this.value=''}" onblur="if(this.value==''){this.value='email '}" />
</li>
<li class="width10"><a href="javascript:;" id="btn_submit" onclick="return fwrite_submit2(document.fwrite2);"/>SUBMIT</a></li>
</ul>
<p>
<textarea name="wr_3" rows="100" cols="100%" id="con_message" title="내용쓰기" required class="frm_input required qa_box_in02" placeholder="text"></textarea>
</p>
<p class="captcha">
<?php echo captcha_html(); ?>
</p>
</div>
function fcontact_submit(f)
{
<?php echo chk_captcha_js(); ?>
document.getElementById('#btn_submit').disabled = true;
return true;
}
메인에서 캡챠를 사용하려고합니다.
위의 소스처럼 코딩하였구요.
캡챠를 입력해야지만 글이 등록되게 하고싶은데요
현재는 그냥 막 글이 등록되어서요.
어떻게 소스를 수정해야할지 조언 부탁드립니다:)
!-->!-->
답변을 작성하시기 전에 로그인 해주세요.