1
0
Fork 0
feedizer-php/htdocs/libraries/formsgeneration/test_captcha_input_page.html

55 lines
1.8 KiB
HTML
Raw Normal View History

2015-11-13 23:51:46 +01:00
<html>
<head>
<title>Test for Manuel Lemos' PHP form class using the CAPTCHA plug-in input</title>
</head>
<body onload="PageLoad()" bgcolor="#cccccc">
<center><h1>Test for Manuel Lemos' PHP form class using the CAPTCHA plug-in input</h1></center>
<hr />
<form method="get" action="" name="captcha_form" onsubmit="return ValidateForm(this)">
<script type="text/javascript" defer="defer">
<!--
sub_form=''
function ValidateForm(theform)
{
if(sub_form==''
&& (theform['__captcha_text'].value==''))
{
if(theform['__captcha_text'].focus)
theform['__captcha_text'].focus()
alert('It was not entered the correct text.')
return false
}
return true
}
function PageLoad()
{
document.captcha_form['__captcha_text'].focus()
}
// -->
</script>
<noscript>
<!-- dummy comment for user agents without Javascript support enabled -->
</noscript>
<center><table summary="Form table" border="1" bgcolor="#c0c0c0" cellpadding="2" cellspacing="1">
<tr>
<td bgcolor="#000080" style="border-style: none;"><font color="#ffffff"><b>Form CAPTCHA plug-in test</b></font></td>
</tr>
<tr>
<td style="border-style: none;"><fieldset>
<legend><b><label for="__captcha_text" accesskey="E"><u>E</u>nter the following text:</label></b></legend>
<center><img alt="CAPTCHA image" width="80" height="20" align="middle" src="?___event=getimage&amp;___input=captcha&amp;___image=y22%2B%2FA%3D%3D%3A1116881002" /> <input type="text" name="__captcha_text" id="__captcha_text" /> <input type="submit" name="__captcha_redraw" value="Redraw" onclick="sub_form='redraw' ; return true" id="__captcha_redraw" /><input type="hidden" name="__captcha_validation" value="y22+/A==:1116881002" id="__captcha_validation" /></center>
</fieldset>
<hr />
<center><input type="submit" name="doit" value="Submit" onclick="sub_form='' ; return true" /></center></td>
</tr>
</table></center>
</form>
<hr />
</body>
</html>