/ Published in: PHP
                    
                                        
This produces a JPG image with a calculation for spam-prevention. (with german written numbers)
An alternative to captcha images.
                An alternative to captcha images.
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
$words = array("[eins]","[zwei]","[drei]","[vier]","[fünf]","[sechs]","[sieben]","[acht]","[neun]");
$plus = "+";
$ergebnis = $num[$first] + $num[$second];
$showcode = $words[$first] . " + " . $words[$second] . " = ";
$_SESSION['mmmath'] = $ergebnis;
#echo $showcode;
#echo $ergebnis;
$height = 20;
#$width = 225;
#$bordercolor = imagecolorallocate($image, 80, 80, 80);
#imagerectangle($image,0,0,$width-1,$height-1,$bordercolor);
?>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                