El formulario es este:
Código :
<div align="center"> <form name="torrent" action="insert.php" method="post"> <table width="400"> <tr align="center"> <td>Título: <table><tr><td> <input type="text" name="titulo"><br><p> </p></td></tr></table> </td> <td>Imagen: <table><tr><td> <input type="file" name="imagen" style="width:135px"><br><p> </p></td></tr></table> </td> </tr> <tr align="center"> <td>Género: <table><tr><td> <input type="text" name="genero"><br><p> </p></td></tr></table> </td> <td>Enlace: <table><tr><td> <input type="file" name="enlace" style="width:135px"><br><p> </p></td></tr></table> </td> </tr> <tr align="center"> <td>Tipo: <table><tr><td> <select name="tipo" style="width:146px"> <option>Torrent</option> <option>Pando</option> </select><br><p> </p></td></tr></table> </td> <td>Tu nombre o alias: <table><tr><td> <input type="text" name="autor"><br><p> </p></td></tr></table> </tr> </table> <table> <tr align="center"> <td>Descripcion o Sinopsis: <table><tr align="center"><td> <textarea name="descripcion" cols="60" rows="10"></textarea><br><p> </p></td></tr></table> </td> </tr> </table> <table> <tr><td align="center"> <input type="submit" value="Enviar" id="boton"> </td></tr> </table> </form> </div>
Yo lo que quiero es que en "imagen"y en "enlace" se pueda subir un archivo, y en la base de datos guarde la ruta de ese archivo.
¿Cómo lo hago?