così? solo che mi esce un altro messaggio di errore
<?php
$nome = $_POST["nome"];
$grado = $_POST["grado"];
$officiante = $_POST["officiante"];
$arcibat = $_POST["arcibat"];
$diobat = $_POST["diobat"];
$demo1 = $_POST["demo1"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>
<html>
<head>
<title>Certificato Battesimo</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
Nome Battezzato:<br />
<input type="text" size="12" maxlength="20" name="nome"><br />
Officiante Battesimo:<br />
<input type="text" size="12" maxlength="20" name="officiante"><br />
Grado Ecclesiale:<br />
<select name="grado">
<option value="Suddiacono">Suddiacono</option>
<option value="Diacono">Diacono</option>
<option value="Cappellano Nobiliare">College Nobiliare</option>
<option value="Vicario">Vicario</option>
<option value="Sacrestano">Sacrestano</option>
<option value="Parroco">Parroco</option>
<option value="Vicario Diocesano">Vicario Diocesano</option>
<option value="Vicario Generale">Vicario Generale</option>
<option value="Vescovo">Vescovo</option>
<option value="Arcivescovo">Arcivescovo</option>
<option value="Vice Primate">Vice Primate</option>
<option value="Primate">Primate</option>
<option value="Patriarca">Patriarca</option
<option value="Cadinale">Cardinale</option></select><br />
Arcidiocesi Battesimo:<br />
<select name="arcibat">
<option value="Aquileia">Aquileia</option>
<option value="Genova">Genova</option>
<option value="Milano">Milano</option>
<option value="Firenze">Firenze</option>
<option value="Pisa">Pisa</option>
<option value="Siena">Siena</option>
<option value="Ravenna">Ravenna</option>
<option value="Roma">Roma</option>
<option value="Capua">Capua</option></select><br />
Diocesi Battesimo:<br />
<select name="diobat">
<option value="Venezia">Venezia</option>
<option value="Padova">Padova</option>
<option value="Parenzo">Parenzo</option>
<option value="Pola">Pola</option>
<option value="Portogruaro">Portogruaro</option>
<option value="Treviso">Treviso</option>
<option value="Mantua">Mantua</option>
<option value="Udine">Udine</option>
<option value="Genova">Genova</option>
<option value="Chiavari">Chiavari</option>
<option value="La Spezia">La Spezia</option>
<option value="Albenga">Albenga</option>
<option value="Ventimiglia">Ventimiglia</option>
<option value="Milano">Milano</option>
<option value="Como">Como</option>
<option value="Lodi">Lodi</option>
<option value="Alessandria">Alessandria</option>
<option value="Novara">Novara</option>
<option value="Savona">Savona</option>
<option value="Pavia">Pavia</option>
<option value="Firenze">Firenze</option>
<option value="Pistoia">Pistoia</option>
<option value="Montevarchi">Montevarchi</option>
<option value="Pisa">Pisa</option>
<option value="Volterra">Volterra</option>
<option value="Livorno">Livorno</option>
<option value="San Miniato">San Miniato</option>
<option value="Massa">Massa</option>
<option value="Siena">Siena</option>
<option value="Orbetello">Orbetello</option>
<option value="Grosseto">Grosseto</option>
<option value="Santa Fiora">Santa Fiora</option>
<option value="Piombino">Piombino</option>
<option value="Modena">Modena</option>
<option value="Mirandola">Mirandola</option>
<option value="Guestalla">Guestalla</option>
<option value="Parma">Parma</option>
<option value="Fornovo">Fornovo</option>
<option value="Piacenza">Piacenza</option>
<option value="L'Aquila">L'Aquila</option>
<option value="Arezzo">Arezzo</option>
<option value="Montepulciano">Montepulciano</option>
<option value="Teramo">Teramo</option>
<option value="Silvi">Silvi</option>
<option value="Chieti">Chieti</option>
<option value="Sulmona">Sulmona</option>
<option value="Avezzano">Avezzano</option>
<option value="Tagliacozzo">Tagliacozzo</option>
<option value="Terracina">Terracina</option>
<option value="Pontecorvo">Pontecorvo</option>
<option value="Capua">Capua</option>
<option value="Sessa Aurunca">Sessa Aurunca</option>
<option value="Gaeta">Gaeta</option></select><br />
Data battesimo:<br />
<script language="javascript" type="text/javascript" src="datetimepicker.js">
//Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
//Script featured on JavaScript Kit (http://www.javascriptkit.com)
//For this script, visit http://www.javascriptkit.com
</script>
<input id="demo1" type="text" size="25"><a href="javascript:NewCal('demo1','ddmmyyyy')" target="_blank"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>
<input type="submit" value="submit" name="submit">
</form>
<a> target="_blank" </a>
<?
} else {
echo "Il nuovo fedele dell'Altissimo chiamato ".$nome.",<br />";
echo "dal ".$grado." <i>".$officiante."</i><br />";
echo "nella diocesi di ".$diobat.", facente parte dell'arcidiocesi di ".$arcibat.",<br />";
echo "in data ".$demo1.".<br />";
}
?>
<script language="javascript" type="text/javascript" src="datetimepicker.js">
//Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
//Script featured on JavaScript Kit (http://www.javascriptkit.com)
//For this script, visit http://www.javascriptkit.com
</script>
<input id="demo1" type="text" size="25"><a href="javascript:NewCal('demo1','ddmmyyyy')"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date">rel=”external</a>
<?php phpinfo(); ?>
<?php
$nome = $_POST["nome"];
$grado = $_POST["grado"];
$officiante = $_POST["officiante"];
$arcibat = $_POST["arcibat"];
$diobat = $_POST["diobat"];
$databat = $_POST["databat"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>
<html>
<head>
<title>Certificato Battesimo</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
Nome Battezzato:<br />
<input type="text" size="12" maxlength="20" name="nome"><br />
Officiante Battesimo:<br />
<input type="text" size="12" maxlength="20" name="officiante"><br />
Grado Ecclesiale:<br />
<select name="grado">
<option value="Suddiacono">Suddiacono</option>
<option value="Diacono">Diacono</option>
<option value="Cappellano Nobiliare">College Nobiliare</option>
<option value="Vicario">Vicario</option>
<option value="Sacrestano">Sacrestano</option>
<option value="Parroco">Parroco</option>
<option value="Vicario Diocesano">Vicario Diocesano</option>
<option value="Vicario Generale">Vicario Generale</option>
<option value="Vescovo">Vescovo</option>
<option value="Arcivescovo">Arcivescovo</option>
<option value="Vice Primate">Vice Primate</option>
<option value="Primate">Primate</option>
<option value="Patriarca">Patriarca</option
<option value="Cadinale">Cardinale</option></select><br />
Arcidiocesi Battesimo:<br />
<select name="arcibat">
<option value="Aquileia">Aquileia</option>
<option value="Genova">Genova</option>
<option value="Milano">Milano</option>
<option value="Firenze">Firenze</option>
<option value="Pisa">Pisa</option>
<option value="Siena">Siena</option>
<option value="Ravenna">Ravenna</option>
<option value="Roma">Roma</option>
<option value="Capua">Capua</option></select><br />
Diocesi Battesimo:<br />
<select name="diobat">
<option value="Venezia">Venezia</option>
<option value="Padova">Padova</option>
<option value="Parenzo">Parenzo</option>
<option value="Pola">Pola</option>
<option value="Portogruaro">Portogruaro</option>
<option value="Treviso">Treviso</option>
<option value="Mantua">Mantua</option>
<option value="Udine">Udine</option>
<option value="Genova">Genova</option>
<option value="Chiavari">Chiavari</option>
<option value="La Spezia">La Spezia</option>
<option value="Albenga">Albenga</option>
<option value="Ventimiglia">Ventimiglia</option>
<option value="Milano">Milano</option>
<option value="Como">Como</option>
<option value="Lodi">Lodi</option>
<option value="Alessandria">Alessandria</option>
<option value="Novara">Novara</option>
<option value="Savona">Savona</option>
<option value="Pavia">Pavia</option>
<option value="Firenze">Firenze</option>
<option value="Pistoia">Pistoia</option>
<option value="Montevarchi">Montevarchi</option>
<option value="Pisa">Pisa</option>
<option value="Volterra">Volterra</option>
<option value="Livorno">Livorno</option>
<option value="San Miniato">San Miniato</option>
<option value="Massa">Massa</option>
<option value="Siena">Siena</option>
<option value="Orbetello">Orbetello</option>
<option value="Grosseto">Grosseto</option>
<option value="Santa Fiora">Santa Fiora</option>
<option value="Piombino">Piombino</option>
<option value="Modena">Modena</option>
<option value="Mirandola">Mirandola</option>
<option value="Guestalla">Guestalla</option>
<option value="Parma">Parma</option>
<option value="Fornovo">Fornovo</option>
<option value="Piacenza">Piacenza</option>
<option value="L'Aquila">L'Aquila</option>
<option value="Arezzo">Arezzo</option>
<option value="Montepulciano">Montepulciano</option>
<option value="Teramo">Teramo</option>
<option value="Silvi">Silvi</option>
<option value="Chieti">Chieti</option>
<option value="Sulmona">Sulmona</option>
<option value="Avezzano">Avezzano</option>
<option value="Tagliacozzo">Tagliacozzo</option>
<option value="Terracina">Terracina</option>
<option value="Pontecorvo">Pontecorvo</option>
<option value="Capua">Capua</option>
<option value="Sessa Aurunca">Sessa Aurunca</option>
<option value="Gaeta">Gaeta</option></select><br />
Data battesimo:<br />
<script language="javascript" type="text/javascript" src="datetimepicker.js">
//Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
//Script featured on JavaScript Kit (http://www.javascriptkit.com)
//For this script, visit http://www.javascriptkit.com
</script>
<input id="demo1" type="text" size="25" name="databat"><a href="javascript:NewCal('demo1','ddmmyyyy')"><img src="http://forum.it.altervista.org/images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></url><br /><br />
<input type="submit" value="submit" name="submit">
</form>
<?php
} else {
echo "<div style="background-image:url('http://i39.tinypic.com/1zgdi07.jpg');" >";
echo "Il nuovo fedele dell'Altissimo chiamato ".$nome.",<br />";
echo "dal ".$grado." ".$officiante."<br />";
echo "nella diocesi di ".$diobat.", facente parte dell'arcidiocesi di ".$arcibat.",<br />";
echo "in data ".$databat.".<br />";
echo "</div>";
}
?>
ti ringrazio per la pazienza ed il tempo che mi stai concedendo.
mi chiedo ma i div e il background sono in css?