Help me add recapcha in this php script i've tried for hours and still no luck. <?php include('header.php'); ?> <!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>Site Title - can be changed in admin meta settings!</title> <meta name="description" content="this is the site description - can be changed in admin meta settings!"/> <meta name="keywords" content="key,words,here,can,be,changed,in,admin,settings"/> <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/custom.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascript" src="js/jquery.pack.js"></script> <script type="text/javascript" src="js/voting.js"></script> <script type="text/javascript" src="js/ajaxfuncs.js"></script> <!-- Voting Stuff --> </head> <body> <?php if($_POST['submit']){ if(!isset($_SESSION['user']['username'])) $username = "Anonymous"; else $username = $_SESSION['user']['username']; @$query = mysql_query("INSERT INTO `comps`(time,message,accepted,votes1,votes2,via,user,cat,numcoms,subcat) VALUES ('". time() ."', '". clean($_POST['comp']) ."', 'No', 0, 0, 'internet', '". $username ."', '". clean($_POST['cat']) ."', '0', '0')") or die(mysql_error()); echo "<strong>Your submission has been received!</strong> <script type=\"text/javascript\"><!-- setTimeout('Redirect()',1000); function Redirect() { opener.location.href='./'; window.close(); } // --></script>"; } else { echo ' <form action="" method="POST"> <table id="submissionform"> <tr><td class="input" colspan=5> <textarea onfocus="javascript:document.getElementById(\'commbox\').innerHTML=\'\';" name="comp" rows="13" height="75" cols="20" id="commbox">'. $names[4] .'</textarea> </td></tr> <tr><td> <select name="cat"> '; while($category = current($catlist)){ echo '<option value="'. key($catlist) .'">'. current($catlist) .'</option>'; next($catlist); } echo ' </select></td></tr> <tr><td><input type="submit" name="submit" value="Submit!" class="button_login2" /> </td></tr> </table> </form>'; } ?> </body> </html> PHP: you can use any recapcha api key so i can replace it. Thanks Help is greatly appreciated.
What did you try? i don't see any recaptcha lines.. Tell us first what you have done and why you think it doens't work.. then we help you!