note 126155 deleted from function.tan by cmb
| From: | cmb@php.net | Date: | Wed, 09 Jun 2021 09:35:06 +0000 |
| Subject: | note 126155 deleted from function.tan by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-216504@lists.php.net to get a copy of this message | ||
Note Submitter: mam4 at example dot com
----
<?php
require 'producto.php';
@session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Devolver</title>
</head>
<body>
<?php
if (isset($_GET['al'])) {
$rent=$_GET['alquila'];
foreach ($_SESSION['peliculas'] as $film) {
if (strcmp($film->getTitulo(),$rent)==0) {
echo $film->alquila();
}
}
}
elseif (isset($_GET['de'])) {
$devol=$_GET['devolve'];
foreach ($_SESSION['peliculas'] as $pelis) {
if (strcmp($pelis->getTitulo(), $devol)==0) {
echo "casi";
}
}
}
?>
</body>
</html>