Results 1 to 2 of 2

Thread: adding "CAPTCHA" to add.html

  1. #1
    Join Date
    Feb 2004
    Posts
    455

    Default adding "CAPTCHA" to add.html

    Hello,

    I did get quite a few spam posting in my directory, I try to add a "CAPTCHA" field but it does not work properly was anyone able to do it? If yes a little help would be welcome (I do not want to use Java) for your information is my code:

    HTML Code:
    <?php
    	session_start();
    	$msg = '';
    	if (isset($_POST['formposted'])) {
    		if (trim($_POST['turing']) == $_SESSION['turnum']) $msg = "<br /><br /><span style='color: green; font-weight: bold'>You entered valid Turing Number!</span><br /><br />";
    		else $msg = "<br /><br /><span style='color: red; font-weight: bold'>You entered invalid Turing Number!</span><br /><br />";
    	}
    ?>
    <html>
    <body onload="document.forms[0].turing.focus();">
    <div style='text-align: center'>
    <strong>This is a plx Turing Example Form</strong>
    <?=$msg;?>
    <form method='post'>
    	<input type='hidden' name='formposted' value='1' />
    	<img src='turing.php?sv=turnum'><br /><br />
    	Enter number as you see it above: <input type='text' name='turing' value='' /> <input type='submit' name='test' value='Submit' />
    </form>
    </div>
    </body>
    </html>
    I am not sure as how to inser in in add.html or maybe add.php. Thank you

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You can refer to 5.1.0 codes. See captcha.php file.

Similar Threads

  1. Changing color of "new" and "hot"
    By Hetti in forum Indexu Lite
    Replies: 2
    Last Post: 09-10-2004, 09:46 AM
  2. Rename "Top" to "Index"
    By Robert in forum v5.x
    Replies: 2
    Last Post: 07-11-2004, 11:41 AM
  3. Replies: 1
    Last Post: 07-18-2002, 07:47 PM
  4. "Meta keyword" and "Meta description"
    By aladdin in forum v5.x
    Replies: 5
    Last Post: 05-08-2002, 12:52 AM
  5. Replies: 2
    Last Post: 04-21-2002, 06:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •