PHP Classes

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Mark W Ryan  >  HTML Bar Codes  >  readme.txt  >  Download  
File: readme.txt
Role: Example script
Content type: text/plain
Description: Read Me
Class: HTML Bar Codes
Display bar codes using only HTML with CSS
Author: By
Last change: Fixed bad call to overloaded method
Date: 8 years ago
Size: 1,096 bytes


Class file image Download

// Mark Ryan

    create Code39 or Interleave 2 of 5 barcodes using only HTML & CSS

    This has only been tested on IE 6.0

    Free free to modify for your own needs.

    Great for printing barcodes on paper html documents such as Sales orders, Invoices and Shipping documents.


// many thanks to for their barcode specs

$bc1 = new I25Barcode('bcx1','1234567'); // note: a leading zero is added
echo $bc1->getBarcode(); // squirts out style & htlm in one string
echo '<br>';

$bc2 = new c39Barcode('bcx2','TEST8052');
//$bc2->setFactor(2.5); // default is 1, optional enlarge or decrease barcode size
echo $bc2->getBarcode(); // squirts out style & htlm in one string

echo '<br>Just print and scan.';
// have fun