Cau ucim se php, a ted sem narazil na problem ktery nevim jak vyresit protoze chybu nikde nevidim
server mi na prazdne strance vypise toto
Parse error: syntax error, unexpected $end in /home/studenti/petr.zdarsky/public_html/php/second.php on line 40
a v kodu nikde nic spatneho nevidim
<?php
if(!isset($_GET['soucet']))
$_GET['soucet'] = 0;
if(!isset($_GET['pocet']))
$_GET['pocet'] = 0;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>second</title>
</head>
<body>
<form action="second.php" method="get">
<input type="text" name="vstup" />
<input type="submit" value="SEND!" />
<?php
if(is_numeric($_GET['vstup']))
{
$soucet += $_GET['vstup'];
$pocet++;
echo "pocet $pocet , soucet $soucet";
{
if($_GET['vstup'] == "end")
{
echo "Průměr vašich zadaných čísel je $soucet/$počet";
}
?>
<input type="hidden" name="soucet" value="<?php echo $soucet; ?>" />
<input type="hidden" name="pocet" value="<?php echo $pocet; ?>" />
</form>
</body>
</html>