hi....
Following steps can help you for build your own captcha and contact form....
1.First we need to build a new PHP page and save it as captcha.php. Then, in out new script, open a server session by using the session_start() command.
2.Next, we need to write a for loop that will generate a random string. We will then take this random string and set it in a session variable called ?random_code?.
3.Next we need to define a storage folder for the font we are going to use, build the base captcha image, and define the colors we'll use to fill our image.
4.Next, we're going to fill our image with a white rectangle, which will act as the image background, and then add our random text string to the image.
5.Next, with our script, we need to tell our browser what type of image we are using, with a header() function, and build the final image. These functions are so straight-forward, not much can be explained about them. Also, don't forget to close your PHP script.
6.Build a new PHP contact page and save it as contact.php. This page will contain our contact form that will validate using our captcha.
7Let's add an HTML form to our contact.php page. Pay particular attention to the image source we use for the random text.
8.Now that our form is built and we have out captcha image displaying, all we need to do now is validate our form, being sure to include some validation rules for out captcha.
9.Once your validation is working, your captcha contact form should be working great.
actually this is lengthy procedure, i try to small it...thank you