arkadaslar merhaba artik kafami duvara vurmaktan birazda sormaya karar verdim belki bir bilen bir anlayan cikar da beni buyuk bi dertten kurtarir. simdi sorum su code39 formatinda barkod yaratmam lazim girilen urun id si code39 formatina donusecek ve barkod olusacak buraya kadar ki ksisim da bi sorun yok direk olusuyor. sorun su barkod olustuktan sonra databaseten ya da text boxtan bir takim aciklayici bilgileride barkodun altina basmasi gerekiyor. simdi ben kodu sizlerle paylasayim illaki bu kod blogunu kullanicam diye bi kaidede yok ama en temiz ve basiti bana bu geldi, simdiden yardimci olmak icin kafa patlatan arkadaslara tesekkurler assagida kod tam olarak su islemi yapiyor. hatta demosuna burdan bakabilirsiniz. sid6581. net/cs/php-scripts/barcode &lt;form method=&quot;POST&quot; action=&quot;barcode. php&quot;&gt; &lt;p&gt;create barcode : &lt;INPUT TYPE=&quot;text&quot; SIZE=&quot;16&quot; NAME=&quot;barcode&quot;&gt; &lt;/br&gt; &lt;INPUT TYPE=&quot;hidden&quot; NAME=&quot;width&quot; value=&quot;230&quot;&gt; &lt;INPUT TYPE=&quot;hidden&quot; NAME=&quot;height&quot; value=&quot;80&quot;&gt;&lt;br/&gt; &lt;INPUT TYPE=&quot;hidden&quot; NAME=&quot;text&quot; value=&quot;10&quot; &gt; &lt;INPUT TYPE=&quot;submit&quot; VALUE=&quot;Generate Barcode&quot; id=&quot;button&quot;&gt; &lt;/form&gt; &lt;?php / / / PHP Barcode Image Generator v1.0 Copyright 2000 by Charles J. Scheffold - UPDATE 5/10/2005 by C. Scheffold Changed FontHeight to -2 if no text is to be displayed UPDATE 03/12/2005 by C. Scheffold Added '-' character to translation table UPDATE 09/21/2002 by Laurent NAVARRO - Updated to be compatible with register_globals = off and on UPDATE 4/6/2001 - Important Note! This script was written with the assumption that &quot;register_globals = On&quot; is defined in your PHP. INI file! It will not work as-is and as described unless this is set. My PHP came with this enabled by default, but apparently many people have turned it off. Either turn it on or modify the startup code to pull the CGI variables in the old fashioned way . If you just want to use the functions and pass the variables yourself, well then go on with your bad self. This code is hereby released into the public domain. Use it, abuse it, just don't get caught using it for something stupid. The only barcode type currently supported is Code 3 of 9. Don't ask about adding support for others! This is a script I wrote for my own use. I do plan to add more types as time permits but currently I only require Code 3 of 9 for my purposes. Just about every scanner on the market today can read it. ParaMETERS: $barcode = The barcode you want to generate $type = (default=0) It's 0 for Code 3 of 9 $width = (default=160) Width of image in pixels. The image MUST be wide enough to handle the length of the given value. The default value will probably be able to display about 6 digits. If you get an error message, make it wider! $height = (default=80) Height of image in pixels $format = Can be &quot;jpeg&quot;, &quot;png&quot;, or &quot;gif&quot; $quality = (default=100) For JPEG only: ranges from 0-100 $text = (default=1) 0 to disable text below barcode, &gt;=1 to enable NOTE: You must have GD-1.8 or higher compiled into PHP in order to use PNG and JPEG. GIF images only work with GD-1.5 and lower. ANOTHER NOTE: If you actually intend to print the barcodes and scan them with a scanner, I highly recommend choosing JPEG with a quality of 100. Most browsers can't seem to print a PNG without mangling it beyond recognition. USAGE EXAMPLES FOR ANY PLAIN OLD HTML DOCUMENT: &lt;IMG SRC=&quot;barcode. php?barcode=HELLO&amp;quality=75&quot;&gt; &lt;IMG SRC=&quot;barcode. php?barcode=123456&amp;width=320&amp;height=200&quot;&gt; / / / // // Startup code // if(isset $text=$_GET ; if(isset($_GET )) $text=$_GET ; if(isset $format=$_GET ; if(isset $quality=$_GET ; if(isset $width=$_GET ; if(isset $height=$_GET ; if(isset $type=$_GET ; if(isset $barcode=$_GET ; if (! isset $text = 2; if (! isset $type = 1; if (empty $quality = 100; if (empty $width = 160; if (empty $height = 80; if (! empty $format = strtoupper ; else $format=&quot;PNG&quot;; switch // // Generate a Code 3 of 9 barcode // function Barcode39 { switch $im = ImageCreate or die ; $White = ImageColorAllocate ($im, 255, 255, 255); $Black = ImageColorAllocate ($im, 0, 0, 0); //ImageColorTransparent ; ImageInterLace ($im, 1); $NarrowRatio = 20; $WideRatio = 55; $QuietRatio = 35; $nChars = (strlen +2) ((6 $NarrowRatio) + (3 $WideRatio) + ; $Pixels = $width / $nChars; $NarrowBar = (20 $Pixels); $WideBar = (55 $Pixels); $QuietBar = (35 $Pixels); $ActualWidth = (($NarrowBar 6) + ($WideBar 3) + $QuietBar) (strlen +2); if (($NarrowBar 0) || || || ($WideBar 0) || || ($QuietBar 0)) $CurrentBarX = / 2); $Color = $White; $BarcodeFull = &quot; &quot;. strtoupper .&quot; &quot;; settype ; $FontNum = 3; $FontHeight = ImageFontHeight ; $FontWidth = ImageFontWidth ; if ($text!= 0) else for ($i=0; $i&lt;strlen ; $i++) { $StripeCode = Code39 ; for ($n=0; $n &lt; 9; $n++) { if $Color = $Black; else $Color = $White; switch } $Color = $White; ImageFilledRectangle ($im, $CurrentBarX, 0, $CurrentBarX+$QuietBar, $height-1-$FontHeight-2, $Color); $CurrentBarX += $QuietBar; } OutputImage ; } // // Output an image to the browser // function OutputImage { switch } // // Returns the Code 3 of 9 value for a given ASCII character // function Code39 { switch } ?&gt;

$BarcodeFull = &quot; &quot;. strtoupper .&quot; &quot;; bu satırla biraz oynamayı dene. çoklu satır yapabiliyor musun onu dene mesela şu şekilde: $BarcodeFull = &quot; \n&quot;. strtoupper .&quot;\n &quot;;

adamlar zaten kodu senin dediklerini düşünüp oluşturmuşlar. Usage kısmındaki $_GET leri dene tek tek

asp olsaydı size yardımcı olabilirdim ama php maalesef