hey php builders,
i know that if you go
<?php
echo "a word is: " . $_POST['word'];
?>
<form method="POST">
<input type="text" name="word"><br>
<input type="submit">
</form>
that it will output anything u type in the form text space.
but say you wanted to get information on someone, like their age and store it in a variable.. is that possible?
because it doesnt let me do this:
<?php
$age;
?>
<form method="POST">
<input type="text" name="age"><br>
<input type="submit">
</form>
// then later in the file i would go
Another year passes you are now:
<? $age++; $age ?>
that doesnt work, i already tried it, but how would i write it so it would work? so that i can enter 10 into the text form and it would print 11..?