php - create x number of input boxes

Member 3639

Active member
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.
 
Top Bottom