PHP practical exam.
This commit is contained in:
		
							
								
								
									
										23
									
								
								2/IAW/exams/1er-trimestre/resultado.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								2/IAW/exams/1er-trimestre/resultado.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
		<title>Resultado</title>
 | 
			
		||||
	</head>
 | 
			
		||||
	<body>
 | 
			
		||||
		<h1>Encuesta (Resultado)</h1>
 | 
			
		||||
<?php
 | 
			
		||||
if(isset($_POST["favorite"])) {
 | 
			
		||||
?>
 | 
			
		||||
		<p>Su opción es:</p>
 | 
			
		||||
		<img src="imgs/<?= $_POST["favorite"] ?>.svg" width="100px" />
 | 
			
		||||
<?php
 | 
			
		||||
} else {
 | 
			
		||||
?>
 | 
			
		||||
		<p><b>ERROR:</b> No ha seleccionado ninguno.</p>
 | 
			
		||||
<?php
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
		<p><a href="nicolas-ej2.php" >Volver al formulario</a></p>
 | 
			
		||||
		<p>Última modificación de esta página: <?= date('Y-m-d', filemtime(__FILE__)) ?>
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
		Reference in New Issue
	
	Block a user