Location: PHPKode > scripts > Automatic Drop Down Menu > automatic-drop-down-menu/imagen3.php
<?php
header("Content-type: image/png");
$string = $_GET['categor'];
$im = imagecreatefromjpeg("images/standardmenu.jpg");
$orange = imagecolorallocate($im, 220, 110, 60);
$image_height = imagesy($im); 
$image_width = imagesx($im); 
$font_height = imagefontheight(3); 
$font_width = imagefontwidth(3); 
$length = $font_width * strlen($string);
$image_center_x = ($image_width/2)-($length/2); 
$image_center_y = ($image_height/2)-($font_height/2); 
imagestring($im, 3, $image_center_x ,  $image_center_y , $string, $orange);
imagepng($im);
imagedestroy($im);
?> 
Return current item: Automatic Drop Down Menu