How to get input value from another site when opening a page? When opening the page I load the file get.php which takes the value input from another site. JS I deduce the received value, but deduces nothing. Where am I wrong?
File get.php
<?php $str = file_get_contents("https://ecom.akbars.ru/cgi-bin/cgi_link?TERMINAL=93200011"); preg_match('/<input type="hidden" value="(.*)" id="Form_id" name="FORM_ID"/', $str, $matches); echo $matches[1]; JavaScript to display the results:
<?php include 'get.php'; ?> <script> $.get('get.php', {}, function(data){ alert('значение'); alert(data);}); </script>