Jump to content

Lydfreak

New Members
  • Posts

    2
  • Joined

  • Last visited

Lydfreak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi! I have a small problem. Jeg have a script (code128b-1.php) that generates a barcode from a number I write in a textbox. If I don't put a number in this textbox, then the barcode script still make a barcode that contains no data. How can I make a if-sentence that check if the variable $datatoencode1 is empty, and in case it is empty, then it will use the picture nullimage.png. Else I want to use the barcode that the script gives me. Code: <?php $datatoencode1 = $_POST['datatoencode1']; ?> <img src = "code128b-1.php?D=<?php echo $datatoencode1 ?>">
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.