CAPTCHA image and test the value of the "validator" form field like: if (!empty($_POST['validator']) && $_POST['validator'] == $_SESSION['rand_code']) { process your form here at least destroy the session unset($_SESSION['rand_code']); */ // save this code in your random script session_start(); if (empty($_SESSION['rand_code'])) { $str = ""; $length = 0; for ($i = 0; $i < 4; $i++) { // this numbers refer to numbers of the ascii table (small-caps) $str .= chr(rand(97, 122)); } $_SESSION['rand_code'] = $str; } $imgX = 60; $imgY = 20; $image = imagecreatetruecolor(60, 20); $backgr_col = imagecolorallocate($image, 238,239,239); $border_col = imagecolorallocate($image, 208,208,208); $text_col = imagecolorallocate($image, 46,60,31); imagefilledrectangle($image, 0, 0, 60, 20, $backgr_col); imagerectangle($image, 0, 0, 59, 19, $border_col); $font = "VeraSe.ttf"; // it's a Bitstream font check www.gnome.org for more $font_size = 10; $angle = 0; $box = imagettfbbox($font_size, $angle, $font, $_SESSION['rand_code']); $x = (int)($imgX - $box[4]) / 2; $y = (int)($imgY - $box[5]) / 2; imagettftext($image, $font_size, $angle, $x, $y, $text_col, $font, $_SESSION['rand_code']); header("Content-type: image/png"); imagepng($image); imagedestroy ($image); ?>

To post your classified:
• Choose one of the categories available below.
• Text only, no photos or logos.
• Maximum 40 words per ad submitted.
• Submit your classified ad by last Friday of each month.
• Upon approval, classified ads will be posted for 30 days.

Please complete the following fields. Items marked (*) are mandatory.

*First Name:

*Last Name:

Company (if applicable):

*Email Adress:

*Telephone:

*Date submitted:

*Category:

*Ad text,
as it is
to appear:
(max. 40 words)

Silver and Gold reserves the right to refuse ads which contain
questionable or inappropriate content. Silver and Gold will not
be held responsible for content or errors submitted.