i have a textarea:
<form action="index.php" method="post">
<textarea name="test" rows="20" cols="20"></textarea>
<input type="submit" />
</form>
i want to type 195.2.2.13/16 and PHP should give me a list like that:
195.2.2.13
195.2.2.14
195.2.2.15
195.2.2.16
how can i do it with PHP?
I noticed that the code posted originally was fine for two decimal points but just incase you need to use 3 the below should work fine.