Forum Moderators: coopster
I have a form with a questionaire on my website that is being spammed. I decided to use an image-code addon in an attempt to stop the spam.
I uses phpforms and bought their image code addon. They installed it on my server and gave me instructions how to add it to the page.
I have done as requested but the image is not showing.. just a placeholder.
the code they gave me to add to my page is
<?php
require_once( '/home/rend1/public_html/phpforms/img-code/img_code.php');
list($sCode, $sPath) = GenerateImgCode();
?>
<img src="<?=$sPath?>">
<input type="hidden" name="imgcode_id" value="<?=$sCode?>">
<input type="text" name="imgcode_code" value="" style="width:100%;">
the page is at <snip>
Is there anyone who would like to help me to get this working.. would be happy to correspond privately if required.
Thanks in advance
Lindy
[edited by: eelixduppy at 10:48 am (utc) on April 2, 2007]
[edit reason] no URLs, please [/edit]
error_reporting(E_ALL);
Also, what is being echoed into the
srcattribute of the
imgtag? Is it a valid filepath? Are images being generated in that location? If not, are the permissions of that directory such that the web user can write files there?