ciao a tutti , non riesco a capire perché non funziona questo codice :
codice:
<form id="form1" name="form1" method="post" action="">
<label>
<input type="radio" name="domanda_1" value="a" />
Stare con gli amici</label>
<label>
<input type="radio" name="domanda_1" value="b" />
Leggere un libro</label>
<label>
<input type="radio" name="domanda_1" value="c" />
Restare in famiglia</label>
</p>
</form>
<?php
if (isset($_POST['submit']))
{
if ($_POST['domanda_1'] == "a")
{
echo "
Profilo a</p>";
}
if ($_POST['domanda_1'] == "b")
{
echo "
Profilo b</p>";
}
}
?>
</p>
<form id="form2" name="form2" method="post" action="">
<input type="submit" name="submit" value="submit" />
</form>
Dove sbaglio ??