1. 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

Discussion in 'General PHP and MySQL Discussions' started by Liam Dawe, Jan 18, 2012.

  1. Liam Dawe

    Liam Dawe 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.
  2. James

    James Well-Known Member

Share This Page