I am trying to write a form loop that displays a text box however many times the user wants. For example, if the user enters 4, 4 text boxes will show up.
Here is the code I have now for the for loop:
I get this error:
Bareword found where operator expected at assignment4.pl line 127, near ""(displays a textbox here)"" syntax error at assignment4.pl line 127, near ""(displays a textbox here)
Thanks in advance!
Here is the code I have now for the for loop:
Code:
for($i = 1; $i <= $elements; $i++)
{
print "Enter number $i: <br>";
print "<input type="text">";
}
Bareword found where operator expected at assignment4.pl line 127, near ""(displays a textbox here)"" syntax error at assignment4.pl line 127, near ""(displays a textbox here)
Thanks in advance!
Comment