I am trying to set up a form for potential students to give their information for a language academay. When I tested the form with <input type="text" name"Nombre"> type of fields everything went fine. As soon as I tried to introduced drop down menus or typ radio elements the data base started to show blank for any new submission except for the ID (primary field, auto increment). Here's the code of the page:
<html><head><title>aciform</title>
</head><body style="color: rgb(255, 204, 0); background-color: rgb(0, 0, 136);" alink="#000099" link="#000099" vlink="#990099">
<span class="sd-abs-pos" style="position: absolute; top: 3.5cm; left: 1.08cm; width: 159px;"><img style="border: 0px solid ; width: 159px; height: 154px;" alt="logo" src="acishield.gif" name="gráficos1"></span>
<span class="sd-abs-pos" style="position: absolute; top: 3.5cm; left: 22cm; width: 159px;"><img style="border: 0px solid ; width: 159px; height: 154px;" alt="logo" src="acishield.gif" name="gráficos2"></span>
<div style="text-align: center;">
<h3>¡¡Llena ahora el formulario de pre-inscripcion sin ningun
compromiso!!
</h3>
</div>
<form action="confirmacion.php" method="post">
<div style="text-align: center;">
<h4>Nombre:
<input name="name" type="text"></h4>
</div>
<div style="text-align: center;">
<h4>Correo
electronico:
<input name="email" type="text"></h4>
</div>
<div style="text-align: center;">
<h4>Teléfono:
<input name="phone" type="text"></h4>
</div>
<div style="text-align: center;">
<h4>Curso
deseado:<br>
<input type="radio" name="level" value="Basicó" /> Basicó<br />
<input type="radio" name="level" value="Intermedio" /> Intermedio<br />
<input type="radio" name="level" value="Avanzado" /> Avanzado<br />
<input type="radio" name="level" value="Francés" /> Francés<br />
</h4>
</div>
<div style="text-align: center;">
<h4>Modo de
comunicación:<br>
<input type="radio" name="communication" value="Teléfono" /> Teléfono<br />
<input type="radio" name="communication" value="Correo electronico" /> Correo electronico<br />
</h4>
</div>
<div style="text-align: center;"><input type="submit">
</div>
</form>
<?php
$username="a6239874_reg";
$password="password";
$database="a6239874_reg";
$name=$_POST;
$email=$_POST;
$phone=$_POST;
$level=$_POST;
$communication=$_POST;
mysql_connect("mysql16.000webhost.com",$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO register VALUES ('','$name','$email','$phone','$level','$communication')";
mysql_query($query);
mysql_close();
?>
</body></html>
I am totaly new to programming html and php so excuse my ignorance and please explain to me like if I were a 5 years old. Thank you.