Hi i have a html page with a simple form and i want to be able to input only INTS, and after i press submit i wana be on the same page and the value gets stored in an array, until some1 enters zero and it will then show how many ints you have entered. i think the it should be done with sessions, here is my code:
foreach ($tal as $koll => $value) {
if (ctype_digit($value)) {
echo "The string $koll consists of all digits."."</br>";
} else {
echo "The string $koll does not consist of all digits."."</br>";
}
}