Redirect specific user after logon in hostpot

Hi all!

I want redirect one specific user to another host after logon, my login.html like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Centro comercial Unico | Autenticación</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
  <link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
  <!--[if lte IE 7]><link href="css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
  <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript" src="js/bootstrap.js"></script>
  <script type="text/javascript" src="js/bootstrap.js"></script>
  <!--[if IE 6]>
  <script type="text/javascript" src="js/ie6pngfix.js"></script>
  <script type="text/javascript">
    DD_belatedPNG.fix('img, ul, ol, li, div, p, a, h1, h2, h3, h4, h5, h6');
  </script>
  <![endif]-->
</head>

<body class="container">
$(if chap-id)
	<form name="sendin" action="$(link-login-only)" method="post">
		<input type="hidden" name="username" />
		<input type="hidden" name="password" />
		<input type="hidden" name="dst" value="$(link-orig)" />
		<input type="hidden" name="popup" value="true" />
	</form>
	
	<script type="text/javascript" src="/md5.js"></script>
	<script type="text/javascript">
	<!--
	    function doLogin() {
		document.sendin.username.value = document.login.username.value;
		document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
		document.sendin.submit();
		return false;
	    }
	//-->
	</script>
$(endif)

<div class="container-fluid">

<div class="row">
	<!--Cabecera -->
	<div class="col-sm-6">
		<h2>Zona WIFI - Centro Comercial UNICO Outlet</h2>
		<br>
	</div>
	<!--/cabecera-->
	
	<!--
	<div class="col-sm-2">
		<h3>Autenticación<br><small>Servicio exclusivo</small></h3>
		<form name="login" action="$(link-login-only)" method="post"
		$(if chap-id) onSubmit="return doLogin()" $(endif)>
			<div class="form-group">
				<label for="exampleInputPassword1">Contraseña:</label>
				$(if username == test)	
				<input type="hidden" name="dst" value="http://eltiempo.com" />
				$(else)
				<input type="hidden" name="dst" value="$(link-orig)" />
				$(endif)
				<input type="hidden" name="popup" value="true" />
				<input name="username" type="password" class="form-control" value="$(username)"/>
		        <input type="hidden" name="password" style="width: 100px" value="scorazones"/>
			</div>	
		    <input name="submit" type="submit" class="btn btn-default" value="  INGRESAR  " />
		</form>
	</div>
	Zona autenticacion-->
</div>

<div class="row">
	
	<!-- Info -->
	<div class="col-sm-3">
		<h3>Disfrute de Internet en nuestras zonas wifi.<br><small>Conéctese a la red “CC_UNICO” desde su portátil o dispositivo móvil y navega durante 30 minutos diarios, con el acceso gratuito "Clic aqui visitantes".</small></h3>
		<br>
	</div>
	<!-- Info -->
	
	<div class="col-sm-3">
		<!-- Logo app -->
		<a href="index.html">
			<center><img src="images/app.png" title="Descargar app" /></center>
		</a>
		<!-- /Logo app -->
	
		<!-- Visitantes -->
		<div class="row">
			<center><a href="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)" class="btn btn-primary btn-lg active">Clic aqui visitantes</a></center>
		</div>
		<!-- /Visitantes -->
	</div>

</div>

<!--Zona autenticacion-->
<div class="row">
	<div class="col-md-6">
		<h3>Autenticación<br><small>Servicio exclusivo</small></h3>
		<form name="login" action="$(link-login-only)" method="post"
		$(if chap-id) onSubmit="return doLogin()" $(endif)>
			<div class="form-group">
				<label for="exampleInputPassword1">Contraseña:</label>
				<input type="hidden" name="dst" value="$(link-orig)" />
				<input type="hidden" name="popup" value="true" />
				<input name="username" type="password" class="form-control" value="$(username)"/>
		        <input type="hidden" name="password" style="width: 100px" value="scorazones"/>
			</div>	
		    <input name="submit" type="submit" class="btn btn-default" value="  INGRESAR  " />
		</form>
	</div>
</div>
<!--Zona autenticacion-->
				
<!-- / footer -->
<script type="text/javascript">
<!--
  document.login.username.focus();
//-->
</script>
</div>
</script>
</body>
</html>

I tried

$(if username == test)	
				<input type="hidden" name="dst" value="http://eltiempo.com" />
		$(else)
				<input type="hidden" name="dst" value="$(link-orig)" />
		$(endif)

But doesnt work.

Could you helpme?

Really thank you very much!