shafack adlı üyeden alıntı: mesajı görüntüle
https://lmgtfy.com/?q=get+last+part+of+url+php

<?php
$link = $_SERVER['PHP_SELF'];
$link_array = explode('/',$link);
echo $page = end($link_array);
?>
Çok teşekkür ederim hocam