How to setup Captive Portal on Mikrotik Router?

I have Mikrotik Router and Captive Portal. I need to setup captive portal on mikrotik router, I have login credential and created login.php for that. now I want every new user need to first login then he/she can access internet using Captive Portal and Mikrotik Router of KFC Survey.

https://wiki.mikrotik.com/wiki/Hotspot_server_setup

https://wiki.mikrotik.com/wiki/HotSpot_external_login_page

Mikrotik doesnt host PHP pages natively, if you want a PHP page specifically you’ll have to externally host it and have your hotspot configured to point to it (all info in those 2 links)