Add files via upload
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							dc8c00e751
						
					
				
				
					commit
					de8ab2ad8e
				
			
							
								
								
									
										16
									
								
								panel_admin/manage_films/add_film.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								panel_admin/manage_films/add_film.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<?php
 | 
			
		||||
    include_once('./includes/film_dto.php');	
 | 
			
		||||
    include_once('./includes/film_dao.php');		
 | 
			
		||||
 | 
			
		||||
    $bd = new FilmDAO("complucine");
 | 
			
		||||
    //siempre accedemos a traves de los nombres de los formularios o div
 | 
			
		||||
    if(isset($_REQUEST['add_film'])) {
 | 
			
		||||
       if(isset($_REQUEST['tittle'])) {
 | 
			
		||||
            $film = new FilmDTO(null, $_REQUEST['tittle'], $_REQUEST['duration'], $_REQUEST['language'], $_REQUEST['description']);
 | 
			
		||||
            $bd->addFilm($film);
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
    }
 | 
			
		||||
    header("Location: ../panel_admin/index.php?state=mf");
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user