<html>
<body>
<form action="Send_Contact_Us.php" method="post" onSubmit="return checkform(this);">
<label>Name</label>
<input name="name" type="text" required="required" />
<label>Email</label>
<input name="mail" type="email" required="required" />
<label>Phone</label>
<input type="text" name="phone" pattern="[789][0-9]{9}" required="required" />
<label>Comments</label>
<textarea name="comment" rows="3" cols="20" required="required"></textarea>
<label for="code">Write code below <span id="txtCaptchaDiv" style="color:#F00"></span>
<!-- this is where the script will place the generated code -->
<br/>
<input type="hidden" id="txtCaptcha" />
</label>
<input type="text" name="txtInput" id="txtInput" size="30" onfocus="validatePass(document.getElementById('txtCaptcha'), this);" oninput="validatePass(document.getElementById('txtCaptcha'), this);" />
<input type="submit" />
</form>
</body>
</html>
이것은 JavaScript를 사용하여 텍스트 필드 위에 코드를 생성하려는 양식 코드입니다.html 형식의 자바 스크립트를 사용하여 텍스트 captcha를 만드는 방법
하시기 바랍니다없는 다른 텍스트 보안 문자, 그들은 그렇게 평가 및 하드 가끔 있습니다. 대체 솔루션 사용 : http://blogoscoped.com/archive/2009-04-19-n82.html – Endless
[무엇을 시도 했습니까?] (http://mattgemmell.com/what-have-you-tried/) 원하는 결과를 얻기 위해 시도한 것을 제공하십시오. StackOverflow는 제품을 요청할 수있는 사이트가 아닙니다. 그러나 문제를 해결하는 데 도움을 요청할 수 있습니다. – Cerbrus
captcha 클라이언트 측을 생성하는 경우 클라이언트는 대답이 무엇인지 알 필요가 있으며 captcha가있는 객체를 패배시킵니다! – Quentin