Código HTML:
Ver original
<!doctype html> <html lang="es"> <head> <meta charset="utf-8"/> <script type="text/Javascript"> function añade() { var numero = parseInt(document.getElementById("numero").value); for(var i = 0; i < numero; i++) { document.write(" " + i + ": <input name='archivo" + i +"' type='file' />"); } } </script> </head> <body bgcolor="white"> <?php session_start(); // Controlo si el usuario está logueado if (!isset($_SESSION['nombre'])) { echo "Debes ser administrador o redactor para acceder aquí."; } else { if($_SESSION['rol'] == "administrador" || $_SESSION['rol'] == "redactor"){ ?> <table width=100% > <tr> <td> <!-- FORMULARIO REGISTRO DE DATOS YIR --> Regístrate: <form method="post" action="add.php" enctype="multipart/form-data"> <table > <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> </table> </form> </td> </tr> </table> <?php }else{ echo "Debes de ser administrador o redactor para tener acceso"; } } ?> </body> </html>