i need to add a text in the end of the url while user click on a button.
for example : www.example.com/people/xyz when the user click the button, it should go to www.example.com/people/xyz/edit
i did a search, & built code, but it didn't work, here it's :
$editlink = $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
echo '<a href ="<?php $editlink;?>/edit" class="btn btn-info" role="button">EDIT</a>'
Please Help me to solve it