Click here to Skip to main content
15,896,606 members
Articles / Web Development / Apache

How to : Using PHP Fusion 7 CAPTCHA

Rate me:
Please Sign up or sign in to vote.
4.85/5 (3 votes)
12 Feb 2009GPL31 min read 61.5K   756   18  
Shows you how using PHP Fusion 7 CAPTCHA class
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Captcha</title>
<style type="text/css">
<!--
body {
	background: #e4e4e8;
}
img {
	border:0px;
}
input {
	margin: 0px auto;
	width: 98%;
}
.captcha {
	width: 200px;
	margin: 10px auto 0px;
	border: 1px solid #999;
	background: #d0d0d4;
}
.titr{
	text-align: center;
	font-size: 36px;
	margin-top: 150px;
}
.showCode{
	width: 200px;
	margin: 0px auto;
}
-->
</style>
<script language="javascript" type="text/javascript">
function RefreshCaptcha()
{
	var captchaImage = document.getElementById('captcha');
	captchaImage.src = 'securimage/securimage_show.php?sid=' + Math.random(); 
	return false
}
</script>
</head>
<body>
<div class="titr">
	PHP Fusion 7 Captcha
</div>
<div class="captcha"> 
    <img src="securimage/securimage_show.php?sid=' + Math.random();" alt="Validation Code:" name="captcha" width="145" height="45" align="left" id="captcha"/> <a onclick="RefreshCaptcha();" href="#"> <img align="top" alt="" src="securimage/images/refresh.gif"/> </a> <a href="securimage/securimage_play.php"> <img align="top" style="margin-bottom: 1px;" alt="" src="securimage/images/audio_icon.gif"/> </a> <br />
  <div style="clear:both;"></div>
 </div>
<div class="showCode"><a href="getCode.php" target="_blank">Show code</a></div>
</body>
</html>

<!-- 
Created by Mohammad Dayyan
My wblog : http://www.mds-soft.persianblog.ir/
1387/10/5
-->

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions