Стената на Позора
Публикувано: пет мар 10, 2017 2:30 pm
НЕ правете като тях за да не станете за смях!
Код: Избери всички
<!Doctype html>
<html>
<head>
<meta charset ="UTF-8"/>
<title> На колко години съм? </title>
</head>
<body>
<form method ="get">
<input type="text" name="years" value="currentyears">
<?php
if(!empty($_GET))
{
if(isset($_GET['years'])
}
if(is_numeric($_GET['years']))
{
if(substr($_GET['years'], 0, 1 < '100')
{
$_GET['years'] = '19' . $_GET[years'];
$age = date(Y);
$calculatecurrentyears = $age - $_GET['years'];
}
'<span style="color:green show_message('years'.$_GET['years']. 'correct', 1)</span>'
if(is_negative($_GET['years'] < '0')
{
'<span style="color:red" show_message('years'.$_GET['years']. 'Wrong is negative number! It must be a positive!);</span>'
}
}
else
{
'<span style="color:red" show_message('Add number, not symbol',0);</span>'
}
}
else
{
'<span style="color:red" show message('Must be add years', 'error');
}
}
?>
<input type="calculate" value="send">
</form>
</body>
</html>
аФтобиография, ви(с)ше,Micrisift Office Packet, Опорит, сВерата...