mam jeszcze jeden malutki problem. otoz jak wpisze w pierwsze pole slon to jest wszystko ok. ale jak wpisze slon slon to formularz nie dziala
[php:1:d99edace4e]
<?
$a_tab[1]="mapla";
$a_tab[2]="ssak";
$a_tab[3]="lol";
if ($pier == "slon") {
$zlicz = count($a_tab);
$drug =$a_tab[rand(1, $zlicz)];
}
$forma1 = "<form method="POST" action="$PHP_SELF">
<textarea rows="5" name="pier" cols="40">$pier</textarea></p> <p>cos tam<br>
<textarea rows="5" name="drug" cols="40">$drug</textarea></p>
<p> </p>
<p><input type="submit" value="submit" name="submit"><input type="reset" value="wyczysc" name="reset"></p>
</form>";
echo "$forma1";
?>
[/php:1:d99edace4e]