<html>
<body>
<h1>Age => Seconds</h1>
<form action="get_post.php" method="get">
Age: <input type="text" name="age"></br>
<input type="submit" value="Convert"></br>
</form>
</body>
</html>
<?php
$age = $_GET ["age"];
echo "Your age in sec is: ".($age * 365 * 24 * 60 * 60). " seconds";
?>
Undefined index: age
Ne razumem u cemu je greska. Dali neko zna? Koristim WAMP.
A kad unesem nesto npr 25 vraca mi rezultat Your age in sec is: 788400000 seconds. Neznam u cemu je problem
http://on.wsj.com/H9yjz6 -- India Graduates Millions, but Too Few Are Fit to Hire