Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

anti_spam_image

Usage: string anti_spam_image (string session_id )
Purpose: Returns image data for anti-spam security code.
Availability: IPB SDK 1.5

Returns image data to output the keycode associated with session_id, to allow the user to validate their registration as not spam.

WARNING: This code sets the headers for the page to the image, you cannot use this in collaboration with output on the same page. If you just want to output an image for your registration form, use anti_spam_image_html instead.

The session_id for a session, is created from register_anti_spam function.

// Create new session
$s_id = $SDK->register_anti_spam();
// Output image for user...
$img = $SDK->anti_spam_image($s_id);
echo $img;
exit;



User Contributed Notes

There are currently no user contributed notes for this page.

Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net