This tiny captcha code is kind of weird. Only works in Firefox but not IE (6,8) Hope someone may figure it out what's going on? Or you may download this code from Author. (demo included) [Click Here](http://codefuture.co.uk/projects/captcha/) exmple.php <?php if(isset($_POST['setCaptcha'])){ include_once('./captcha/cf.captcha.php'); if(!check_captcha($_POST['setCaptcha'])){ echo 'CAPTCHA CHECK: <span style="color:red">'.$error_captcha.'</span>'; //exit(); }else{ echo 'CAPTCHA CHECK: <span style="color:green">Correct</span>'; //proceed } } ?> <form method="post" action="" class="center"> <br/><img id="captcha_img" src="./captcha/cf.captcha.php?img=<?=time();?>" /><br/> <a href="#" onclick="document.getElementById('captcha_img').src = './captcha/cf.captcha.php?img=' + Math.random(); return false">Reload Captcha</a><br/> <label for="setCaptcha">Verification code: </label><br/> <input name="setCaptcha" type="text" id="setCaptcha" size="24" class="textbox" /><br/><br/> <input type="submit" value="Send" /><br/> </form> cf.captcha.php <?php // // CF Captcha v0.9 // …

Member Avatar
Member Avatar
+0 forum 9

Here is a very tiny program(3 files) has embedded with Smarty template engine. Anyone knows how to remove Smarty completely? I konw the procedure to remove Smarty but failed to rewrite the code into pure PHP. Complete source files as in attachment. **CLICK HERE!!**~~~ http://www6.mimima.com/link.php?ref=FGHkNoDtmB *****************index.php <?php require("comm/Smarty.class.php"); require_once("get_data.php"); require_once("books.php"); $book = new bo_books(); $book->apply_discount(); $smarty = new Smarty; $smarty->assign("book",$book); $smarty->display('index.tpl'); ?> ****************get_data.php <?php class books { //public public $title = array(); public $image = array(); public $author = array(); public $description = array(); public $year = array (); public $price = array(); // private private $filename = "data.txt"; //class …

Member Avatar
Member Avatar
+0 forum 6

The End.