Search code examples
phphtmlbarcodebarcode-scanner

Submit form on another website using php


Is it possible to create a php script that selects elements on another website and inputs data? I'm trying to incorporate a Code39 Barcode generator on my website however i'm running into issues with reading the scanner. I know this online website works perfectly http://online-barcode-generator.net/ so wanted to know if it's possible to create a script that selects values on the site i.e. Code39, input contents etc and the picture is downloaded locally

If it is possible, I just want a bit of an idea how I could go about starting this. Thanks!


Solution

  • It is possible, but depends what exactly you want to achieve. Any automation solution can do that for you (for example Selenium). But if you want embed html form on your page and then send request to target domain (online-barcode-generator.net) you will probably hit some kind of CSRF defence mechanism.