The question is: How do i insert the variable (echo $url_endpoint;) as a part of the link in the last line: header(\'Location: http://linkhere.com/HERE_I_WANT_THE_VARIABLE\');>
We can also use this with the $_GET method
$_GET
$employee_id = 'EMP-1234'; header('Location: employee.php?id='.$employee_id);