<?php include "./php-barcode/barcode.php"; if (!$_POST["discount"] == null) { $barCode = new barcode(null, null, null); $barCode->_show(); } ?> <html> <header> <meta name="viewport" content="width=device-width, initial-scale=1" property=""/> </header> <body> <form action="" method="post"> <div> <label for="discount">Discount : </label> <select name="discount" class="weight190" id="discount" > <option value="54">4c</option> <OPTION VALUE="56">6c</OPTION> <OPTION VALUE="60">10c</OPTION> <OPTION VALUE="70">20c</OPTION> <OPTION VALUE="85">35c</OPTION> <OPTION VALUE="90">40c</OPTION> </select> <input type="submit" value="Generate" /> </div> </form> </body> </html>