<?php
/*
* experimento4.php
*
* Copyright 2007 Reinaldo Orrego <reinaldo.orrego@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>sin título</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Geany 0.9" />
</head>
<body>
<?php
if (isset($_POST['proceso'])) {
$equipo = htmlentities($_POST['equipo']);
$partidojugado = htmlentities($_POST['partidojugado']);
$partidoganado = htmlentities($_POST['partidoganado']);
$partidoperdido = htmlentities($_POST['partidoperdido']);
$golfavor = htmlentities($_POST['golfavor']);
$golcontra = htmlentities($_POST['golcontra']);
echo $partidujugado ;
} else {
?>
<form method="POST" action="?">
Seleccione el equipo:
<select name="equipo"> <!-- menu de equipos -->
<option>Ojala empatemos</option>
<option>La garrafa mecanica</option>
<option>Cuatro pulmones</option>
<option>Detras pica el indio</option>
<option>Bicentenario</option>
<option>Correcaminos</option>
<option>Potro de las pampas</option>
<option>Cubanero pinilla</option>
<option>Guru contigo</option>
<option>Can~on de plaza</option>
<option>Fuimos flacos</option>
<option>El talento se guarda</option>
</select>
<br />
<!-- partido jugado -->
Ingrese partidos jugados
<input type="text" name="partidojugado" size="2" />
<br />
<!-- partido ganado -->
Ingrese partidos ganados
<input type="text" name="partidoganado" size="2" />
<br />
<!-- partido perdido -->
Ingrese partidos perdidos
<input type="text" name="partidoperdido" size="2" />
<br />
<!-- gol a favor -->
Ingrese goles a favor
<input type="text" name="golfavor" size="2" />
<br />
<!-- gol en contra -->
Ingrese goles en contra
<input type="text" name="golcontra" size="2" />
<br />
<input type="submit" name="proceso" value="Prosesar" /> <!-- boton -->
<input type="reset" value="Limpiar datos" name="ResetButton" />
</form>
<br />
<?php
}
?>
</body>
</html>