Buenas estoy armando un formulario que cargue datos para agregar texto a una base de datos
el form es
<form method="post" action="carga.php">
Direccion :<input type="Text" name="source"><br>
Titulo:<input type="Text" name="title"><br>
Author :<input type="Text" name="author"><br>
Year :<input type="Text" name="year"><br>
Descripcion :<input type="Text" name="desc"><br>
<input type="Submit" name="enviar" value="Aceptar información">
</form>
y el php es
<?PHP
$link=mysql_connect("localhost","cl007_prueba","xx xx");
mysql_select_db("cl007_ejemplo");
$dberror="No se puede conectar a MySQL Server ";
$sql = "INSERT INTO videos (source, title, author, year, desc) ";
$sql .= "VALUES ('$source', '$title', '$author', '$year', '$desc')";
$result = mysql_query($sql);
echo "Se han cargado lso datos.\n";
?>
la db se llama videos y lso cmpos ademas de id son source, title, author, year y desc
muchas gracias