Codice PHP:
<html>
<head>
<title>Modifica Pagina</title>
<style type="text/css">
div.editpage {
text-align: center;
}
</style>
</head>
<body style="backgroundcolor: violet">
<div >
<table width="" height="" border="0">
<tr>
<td style="width: 321.98" align="center"><a href="http://localhost:8888/sito/description.php"><p style="color: yellow">Descrizione</p></a></td>
<td style="width: 321.98" align="center"><a href="http://localhost:8888/sito/biography.php"><p style="color: yellow">Biografia</p></a></td>
<td style="width: 321.98" align="center"><a href="http://localhost:8888/sito/photobook.php"><p style="color: yellow">Foto</p></a></td>
<td style="width: 321.98" align="center"><a href="http://localhost:8888/sito/contacts.php"><p style="color: yellow">Contatti</p></a></td>
</tr> </table>
</div>
<div>
<h1 style="text-align: center"><p style="color: blue">MIO SITO</p></h1>
</div>
<div class="editpage">
<!--Modifica Pagina-->
<!--aggiungo le foto-->
<?php if(!isset($_POST['addphoto'])) { ?>
<form action="" method="post">
<h3>Aggiungi una foto</h3>
<input type="file" name="photo"/><br><br>
<input type="submit" name="addphoto"/>
</form> <?php } else {
//load photo on photobook page
}
?>
<!--elimino le foto Redirect alla pagine con foto Selezione foto Conferma Rimuovo foto dai file di altervista Visualizzo la pagina senza foto eliminata Redirect a editpage pagina-->
</div>
</body>
</html>