Try this but remember as _theworks said you can only do it after a refresh of the page
<?php
$num = $thisNumOfChildren; // The number $thisNumOfChildren
for ($i=1; $i<=$num; $i++) {
$output = "Child No:".$i." <input type='text' name='ThisText" .$i."'>\n<br>";
echo $output;
}
?>