• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

php - create x number of input boxes

#1
Hi all just wandering how i do this;

Say i have a number between 1-50 depending on a user selection when they are taken to a page i wish that page to have that many html input boxes, how would i go about doing that? Would be some sort of loop i am guessing.

So basically someone comes to a page where they have $_POST['number'] = 10

The page would show 10 input boxes.