Hotspot Login Page

Hello, can I change the login page from html to php? I’ve already tried it but the variable can’t recognize at the PHP Script.

No you cannot,
HotSpot variables list is available here,
http://www.mikrotik.com/testdocs/ros/2.9/ip/hotspot_content.php#7.41.15