note 126153 deleted from function.tan by cmb
| From: | cmb@php.net | Date: | Wed, 09 Jun 2021 09:34:47 +0000 |
| Subject: | note 126153 deleted from function.tan by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-216502@lists.php.net to get a copy of this message | ||
Note Submitter: mam2 at example dot com
----
<?php
require 'producto.php';
@session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Add film</title>
</head>
<body>
<?php
$peli=new
pelicula($_GET['titulo'],$_GET['director'],$_GET['estreno']);
$_SESSION['peliculas'][]=$peli;
echo $peli->listaTodo();
echo "<br>";
echo "
<form method='GET' action='folla126_1.php'>
<input type='submit' name='atras' value='Introducir otra
pelÃcula'>
</form>
<form method='GET' action='folla126.php'>
<input type='submit' name='original' value='Pantalla de
selección'
";
$peliculasSerializadas=serialize($_SESSION['peliculas']);
$fichero=fopen("inventario.txt", "w");
fwrite($fichero, $peliculasSerializadas);
?>
</body>
</html>