ciao a tutti.. rieccomi con l'ennesimo problema con php...
in teoria ho capito cosa devo fare .. ma metterlo in pratica..
mi vien difficile..
ecco cosa devo fare
un formo con tre campi
NOME: _________
COGNOME:_________
DATA DI NASCIATA__________
SUBMIT
-------------------------------------
I DATI INSERITI SONO I SEGUENTI: |
NOME: KDFJKDJF |
COGNOME: FGMFKJH |
DATA DI NASCIATA:GJFKJGKFD |
-------------------------------------
Ma nn ho ben chiaro come si faccio tutto cio'!
ho fatto qlcosa, ma ovviamente nn funziona...
<?php
if (isset ($Nome))
{print ("<td>I Dati Inseriri sono i seguienti $Nome</td>"); }
elseif (isset ($Cognome))
{print ("<td>I Dati Inseriri sono i seguienti $Cognome</td>"); }
elseif (isset ($Datadinascita))
{print ("<td>I Dati Inseriri sono i seguienti $Datadinascita</td>"); }
else {print ("<td>Nessun dato inserito</td>"}; }
print ("<html>
<head>
<meta http-equiv='Content-Language' content='it'>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
<meta name='GENERATOR' content='icrosoft FrontPage 4.0'>
<meta name='ProgId" content='FrontPage.Editor.Document'>
<title>Nome</title>
</head>
<body bgcolor='#99CCFF'>
<form method='POST' action='--WEBBOT-SELF--'>
</p>
<p align='center'><font size='3' face='Verdana'> Nome:
<input type='text' name='Nome' size='30' value=$Nome></font></p>
<p align='left'><font size='3' face='Verdana'>
Cognome: <input type='text' name='Cognome' size='30' value=$Cognome></font></p>
<p align='left'><font size='3' face='Verdana'>
Anno di Nascita: <input type='text' name='Data di Nascita' size='30' value=$Datadinascita></font></p>
<p align='center'> </p>
<p align='center'> <input type='submit' value='INVIA DATI' name='B1' style='font-family: Verdana; font-size: 10px; font-weight: bold'></p>
<p align='center'></p>
</form>
<p align='center'></p>
</body>
</html>
") ;
?>
devo usare solo le variabili e il comando "isset"
ho letto qlcosa, ma ci sto campendo pochissimo...
:master: :master: