I have an attendance management system, which has two tables attendance and employees. In this system, there is a page that displays the names of all employees and it is set as a hyperlink as shown below
<?php echo "<a href='attendance_add.php'>" . $row['emp_name'] . "</a> "; ?>
But I want to send employee_id to attendance_add.php page. So how do I send it?
You would do something like:
You will then capture the id from the url using
attendance_add.php$_GET['id']
inside