Parašė sidicer· 2009 Lap. 28 12:11:20
#1
Kodas:
<html>
<head>
<body>
<?php
$testas = $_GET['testas'];
if ($testas == ""){
echo "<p align='center'>
<a href='?testas=1'>1</a>
</p>";
}
if ($testas == '1'){
echo"<p align='center'>
<a href='?testas=2'>2</a>
</p>";
}
if ($testas == '2'){
echo"<p align = center>
<a href='?testas=3'>3</a>
</p>";
}
?>
</body>
</head>
</html>
Error:
Notice: Undefined index: testas in c:\program files\easyphp1-8\www\index.php on line 6
6 eilute:
$testas = $_GET['testas'];
Redagavo sidicer· 2009 Lap. 28 12:11:51