External login page, error?

Hi!
I do an external login page:
login.php

<html>
<title>Hotspot login page</title>
<body>
<form name="login" action="http://******/login" method="post">
<input type="text" name="username" value="">
<input type="password" name="password" value="">
<input type="hidden" name="domain" value="">
<input type="hidden" name="dst" value="http://www.mikrotik.com/">
<input type="submit" name="login" value="log in">
</form>
</body>
</html>

and login.html

<html>
<title>...</title>
<body>
<form name="redirect" action="http://www.*****.com/login.php" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="hidden" name="user" value="$(username)">
<input type="hidden" name="link-login" value="$(link-login)">
<input type="hidden" name="link-orig" value="$(link-orig)">
<input type="hidden" name="error" value="$(error)">
</form>
<script language="JavaScript">
<!--
   document.redirect.submit();
//-->
</script>
</body>
</html>

This work great but if user don’t exist or password is wrong etc. how can i make see the errors?

Thank you!!!

Evaluate $_POST[‘error’], which you are already passing along.

If that is the entire code, your login.php code does not recover any of the variables the login.html form passed to it. There is no <?php> stuff.

i know but how can i put variables?

Why do you require an external login page? Normally, users that require one know why they want one. That might help with the code.

my customer want a login form in his site…

I’m afraid this really is just a case of ‘learn PHP’, though.