<body bgcolor="#000000">
<?
$univers = "";//$_POST["univers"];
$login = $_POST["login"];
$password = $_POST["password"];
$password2 = $_POST["password2"];
$mail = $_POST["mail"];
$planete = $_POST["planete"];


if($login=='' || $password=='' || $password2=='' || $mail=='' || !$univers=='' || $univers=='aucun' || $planete=='')
{
echo '<script language=javascript> alert ("Vous avez oublié de remplir un champ.");</script>';
echo '<script language="javascript" type="text/javascript">
<!--
window.location.replace("index.php");
-->
</script>';

exit;
}

if ( $password != $password2 ) {

	echo '<script language=javascript> alert ("Les deux mots de pass sont differents");</script>';

	include('inscription_form.php');

	exit;
}  

$pass = md5($password);


echo "<form name=\"mulogin\" method=\"post\" action=\"".$univers."inscription_action.php\" target=\"_parent\">
<input name=\"login\" id=\"login\" type=\"hidden\" value=\"".$login."\">
<input name=\"pass\" id=\"pass\" type=\"hidden\" value=\"".$pass."\">
<input name=\"mail\" id=\"mail\" type=\"hidden\" value=\"".$mail."\">
<input name=\"planete\" id=\"mail\" type=\"hidden\" value=\"".$planete."\">
</form>

<body onload=\"javascript:document.forms.mulogin.submit();\">";

?>