rendered paste body<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Deep Dark Port</title>
<link rel="stylesheet" type="text/css" media="screen" href="CSS/EstiloCapas.css">
<link rel="stylesheet" type="text/css" media="screen" href="CSS/fuentes.css">
<link rel="stylesheet" type="text/css" media="screen" href="CSS/listas.css">
<link rel="stylesheet" type="text/css" media="screen" href="CSS/cajas.css">
<link rel="stylesheet" type="text/css" media="screen" href="CSS/prueba.css">
</head>
<body>
<div class="fondo">
<div class="cabeceras">
<h1 class="cab"> Link</h1>
</div>
<div id="central" name="central" class="central" >
<center>
<form action="foto.php" method="get" style="margin-top: 50px;">
<input type="button" name="op" value="ANTERIOR" style="margin-right: 50px;"/>
<input type="button" name="op" value="SIGUIENTE"/>
</form>
</center>
<div class="navImg">
<center>
<?php
$foto=10;
/*Cuando pase anterior restara a no ser que sea menor que dos, y superiro algo parecido*/
if($_GET[op]=="ANTERIOR")
{
if($foto>2)
{
$foto=$foto-1;
}
if($foto<=2)
{
$foto=1;
}
}
if($_GET[op]=="SIGUIENTE")
{
if($foto>4)
{
$foto=1;
}
if($foto<=2)
{
$foto=$foto+1;
}
}
/*MUESTRA FOTO*/
echo'<img src="imagenes/'.$foto.'.jpg">';
echo $foto;
echo $_GET['op'];
?>
</center>
</div>
</div>
</body>
</html>