Good Day,
I have a textbox and I am fetching its value in next page.
Pls see code first below
View.php
echo '<td class="forscreen"><a href="equipments.php?emp_number=' .$row['emp_number'] . '">Add Accessories</a></td>';
<input class="input" type="text" name="emp_numberPrint" id="emp_number" readonly value="<?php echo (isset($_GET['emp_number'])) ? htmlentities($_GET['emp_number']) : ''; ?>"/>
echo '<td class="forscreen"><a href="equipments.php?emp_number=' .$row['emp_number'] .$row['first_name'] . '">Add Accessories</a></td>';
<input class="input" type="text" name="ownerPrint" readonly value="<?php echo (isset($_GET['ownerPrint'])) ? htmlentities($_GET['first_name']) : ''; ?>"/>
As per your approach, you have to pass it in query string to get this on next page.
For View.php
echo '<td class="forscreen"><a href="equipments.php?emp_number=' .$row['emp_number'] .'&first_name='.$row['first_name'] . '">Add Accessories</a></td>';
On the next page
<input class="input" type="text" name="ownerPrint" readonly value="<?php echo (isset($_GET['first_name'])) ? htmlentities($_GET['first_name']) : ''; ?>"/>