startRequest.html 816 B

1234567891011121314151617181920212223
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  6. </head>
  7. <div class="form_div">
  8. <h3>Enter the Tool</h3>
  9. <form method="GET" action="../services/start_request.php">
  10. <input type="text" name="workerID" id="workerID" required>
  11. <p> Tool ID: <input type="text" name="toolID" required></p>
  12. <input type="submit" value="Start" onclick="test();">
  13. </form>
  14. </div>
  15. <script type="text/javascript">
  16. const queryString = window.location.search;
  17. const urlParams = new URLSearchParams(queryString);
  18. const workerID = urlParams.get('workerID');
  19. document.getElementById("workerID").value = workerID;
  20. </script>
  21. </html>