tego el codigo tal que asi y me peta =
:(
Código:
<html><head> <title>Insercion en la BD.</title></head><body>
<form name="Dos" action="insertar.php" method="post">
Titulo:<input name="nombre" type="text" value=""> <br>
Genero:<input name="genero" type="text" value=""> <br>
Reparto:<input name="reparto" type="text" value=""> <br>
Sinopsis:<input name="sinopsis" type="text" value=""> <br>
<a href="formulario.php">Ir a Inicio</a><br>
<input type="submit" value="Insertar"><br>
</form>
<?php
include('conexionbd.php');
$nombre $_POST['nombre'];
$genero = $_POST['genero'];
$nombre $_POST['reparto'];
$genero = $_POST['sinopsis'];
$query = mysql_query("Insert into pruebas(nombre,genero,reparto,sinopsis) values (".$nombre.",".$genero.",".$sinopsis.",".$reparto")") or die (mysql_error());
?>
<h1><div align="center">Registro insertado</div></h1>
<div align="center"><a href="consultabd.php">Visualiza el Contenido de la BD</a></div>
</body>
</html>
me da este error Parse error: syntax error, unexpected T_VARIABLE in c:\AppServ\www\pelis\insertar.php on line 13
es en la linea de $nombre $_POST['nombre'];