Hi!
I am going mad, -I am not that familiar with php yet, but know a little basic programming.
I am receiving a lot of spam i our guestbook http://www.galleri1897.no/viewguestbook.php and wanted now to implement reCaptcha.
I got the keys, and actually got it to show in the right top corner once (allthough i dont remember where I then put the eco), but as it is now, the reCaptcha-box does not show at all!
Can anyone help a newbie here? This is how my code is now (I have left out the private and public keys)
Hope anyone can HELP!!!! Have been reading around the net for two days now!!!
<?php
//skjema for gjestebok. her har gjester mulighet til å skrive kommentarer i gjesteboken. data som tastes inn blir sendt videre til addguestbook.php
//i tillegg kan man trykke på 'vis gjestebok' kanppen. der kan man lese alle kommentarer som ble lagt til.
require('page.php');
require_once('recaptchalib.php');
define('PUBLIC_KEY', xxxxxxxxxxxxxxxxxxx');
define('PRIVATE_KEY', 'xxxxxxxxxxxxxxxxxx');
$art_side = new Page();
$art_side->innhold ='
<table width="900" border="0" bgcolor="white" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><p class="middle">Gjestebok for Galleri 1897 <p></td></tr>
</table>
<table width="900" height="150" border="0" bgcolor="white" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" ><strong><a href="viewguestbook.php">Vis gjestebok</a> </strong></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="white">
<tr>
<form id="form1" name="form1" method="post" action="addguestbook.php">
<td>
<table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="white">
<tr>
<td align="right"><p>Navn</p></td>
<td width="14"></td>
<td width="350"><input name="name" type="text" id="name" size="40" /></td>
</tr>
<tr>
<td align="right"><p>Email</p></td>
<td></td>
<td><input name="email" type="text" id="email" size="40" /></td>
</tr>
<tr>
<td valign="top" align="right"><p>Kommentar</p></td>
<td valign="top"></td>
<td><textarea name="comment" cols="40" rows="10" id="comment"></textarea></td>
</tr>
<tr>
<td colspan="3" align="center">
<?php
echo recaptcha_get_html( PUBLIC_KEY );
?>
//ThisTestText is showing on my site where I wanted the box to be
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Send" /> <input type="reset" name="Submit2" value="Nullstill" />
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
';
$art_side->Show();
?>