using external login page for hotspot

hello

I have a very big project and I don no how to do one part of it . and right now i’m with my employer and the dead time is so close . help me out please

I have a mikrotik CCR 1036 as my service provider such as hotspot, vlan and etc . linux server for using apache as my external hotspot login page . BRAS as my gateway . IBSng software for my RADIUS and AAA . Altai access points as for my clients .

so right now everything is connected . my only problem is how to redirect my hotspot login page to my apache web server .
this is how my client should flow to get internet
connecting to AP ==> login or signin in my external login page ==> AAA in my IBSng software ==> get internet in my BRAS gateway …

I think here is pretty well explained:

http://wiki.mikrotik.com/wiki/HotSpot_external_login_page

/Sas

this is the mikrotik login page and i have nothing to do with it !

I have my own php coding and my own login page .

I think i should play with firewall rules and NAT rules but i don no how and where to put them

Change login.html file. Add your.domain.com do Walled-Garden.

<html>
<head><title>redirector</title></head>
<body>
$(if chap-id)
<noscript>
<center><b>JavaScript required. Enable JavaScript to continue.</b></center>
</noscript>
$(endif)
<form name="redirect" action="http://your.domain.com" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="submit" value="continue">
</form>
<script language="JavaScript">
<!--
   document.redirect.submit();
//-->
</script></center>
</body>
</html>