<form action = "numbericalInput.php" method = "Get">
Please enter the number of input areas you wish
<input type = "text" name = "amountOfEntry"/>
<input type = "submit" name = "GO"/>
</form>
<?php
if(!empty($_GET("amountOFEntry")){
for($i = 0; $i < $_GET("amountOFEntry"); $i++){
<input type= "text" name = "nums[]" size = "2" />
}
}
?>
What i am trying to do is ask the user to input a value in to the text area and then for me to present them with an appropriate amount of text areas for them to enter their values in. So the user enters 10, they have 10 text boxes presented and a submit button or something. I appreciate this line wont work where it is
<input type= "text" name = "nums[]" size = "2" />
but I am sure that's along the right sort of lines? also, what is wrong with this line?
if(!empty($_GET("amountOFEntry")){
thanks