P粉2223201762023-09-05 11:57:39
I think you should use ajax
because the form submit
method reload the page.
var id = '<?php echo $d1; ?>'; $("#submit").click(function(){ $.ajax({ type: 'GET', url: "savegenarateBarcode.php", data:`id=${id}` success:function(data){ alert(data); } }); return false; });