as pudge points out the two options are:
1) ask them how many they want in a form, submit it and then either use $POST or $GET to get that number
if you use $_GET, the number goes in the url: index.php?cnt=5
in which case you'd do this to put put the boxes
<?php
if(exists($_GET['cnt']) and ctype_digit($_GET['cnt']))
{
for ($i=0;$i<$_GET['cnt'];$i++)
{
echo '<input type="textbox" name="text'.$i.'"/>';
}
}
?>
substitute $GET with $POST depending on which you set in the form asking how many boxes (note: in this example the variable 'cnt' assumes thats the name of the textbox in the form used to designate the # of boxes you want)
2) if you want to do it a bit fancier you can use javascript to dynamically grow the boxes in page in which case you'd have to visit the JS section