What I was trying to do, unsuccessfully, is to scan a barcode, then use the output data to send a post request to another site.
I tried using the application from "https://github.com/mebjas/html5-qrcode" in local apache server, but I dont know what I am doing wrong, it just opens a blank page.(tried finding step by step detailed guide, but did not find any. It seem I need a guide to tell me exactly where to put what, if someone knows one for a complete beginner, please tell me. Tried to follow the steps shown at github, but it seems I am missing something.)
I gave up using the github scripts and I then saved page as html from the demo app "https://scanapp.org/#reader" and it opens alright and scans the barcode on my localhost. Tried editing the html and js file, but I cannot find a way to get use of the output data.
So, using the saved page "https://scanapp.org/#reader". When the barcode is scanned, I want to send the decoded result as a post parameter in another site using the below code
<?php
$movieno = $_GET['id_of_decoded_barcode'];
?>
<form id="redirect_form" method="post" action="localhost/checkmoviestatus/find">
<input type="hidden" name="movie_no" value="<?php echo htmlentities($movieno); ?>">
</form>
<script type="text/javascript">
document.getElementById('redirect_form').submit();
</script>
If someone does not have the time to check it how this can be achieved, please to tell me what should I read or watch any tutorial.
If posting automatically as a post data is not possible, please to tell me how to place the decoded result in another place in the document. The output data has only an ID and I cannot replicate it by copying the html code. It shows only in one place at the result data container.