Esecizi in php su moduli
This commit is contained in:
51
stampa.php
Normal file
51
stampa.php
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
<?php
|
||||
|
||||
require_once ('functions.php');
|
||||
include('header.html');
|
||||
|
||||
///////////////////////////
|
||||
echo<<<_css
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
_css;
|
||||
echo "\n";
|
||||
///////////////////////////
|
||||
|
||||
|
||||
|
||||
if ($_GET == null)
|
||||
echo "No data to display\n";
|
||||
else {
|
||||
|
||||
if ($_GET['password_1'] == $_GET['password_2'] ) {
|
||||
|
||||
echo "Nome " . $_GET['name'] . "\n<br>";
|
||||
echo "Mail " . $_GET['mail'] . "\n<br>";
|
||||
echo "Password " . $_GET['password_1'] . "\n<br>";
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
echo 'Dati Inseriti invalidi';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
include ('footer.html');
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user