1234567891011121314151617181920212223 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8"/>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
- </head>
- <div class="form_div">
- <h3>Enter the Tool</h3>
- <form method="GET" action="../services/start_request.php">
- <input type="text" name="workerID" id="workerID" required>
- <p> Tool ID: <input type="text" name="toolID" required></p>
- <input type="submit" value="Start" onclick="test();">
- </form>
- </div>
- <script type="text/javascript">
- const queryString = window.location.search;
- const urlParams = new URLSearchParams(queryString);
- const workerID = urlParams.get('workerID');
- document.getElementById("workerID").value = workerID;
- </script>
- </html>
|