Tutaj mam takie skrypty. Jak sprawic, ze po wybraniu plci wyswietli sie odpowiedz.
Oto skrypty:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>Nimlot uczy się PHP</title>
</head>
<title>Formularz</title>
</head>
<body><center>
Jaka jest Twoja płeć?<br>
<form action="send.php" method="GET" >
<input name="sex" checked="checked" type="radio" value="1">Mężczyzna<br>
<input name="sex" type="radio" value="2">Kobieta<br>
<div>
<input type="submit" value="Sprawdź" />
<input type="reset" value="Reset"></div></center>
</form>
</body>
</html>
<?php
if ($_GET['sex'] = "man"){
}
elseif ($_GET['sex'] = "woman"){
}
?>
Za pomoc reput