using javascript to generate variable number of inputs

suggestions to create variable number of inputs for a MYSQL database

Page 1 of 1

0 Replies - 1067 Views - Last Post: 12 December 2008 - 08:49 PM

#1 JackBauer   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 12-December 08

using javascript to generate variable number of inputs

Post icon  Posted 12 December 2008 - 08:49 PM

I do not yet have code to post. I am looking for help (not necessarily someone writing the code for me....although it would be nice....but more to help me understand what I should do and I'll do it).

I have a MYSQL database that is accessed through a web browser. I am trying to write code in javascript to generate a variable number of rows of inputs to the database.

What I would like is to have a question on the website saying "how many activities do you have for task #1".....the user enters a number and that number of rows of input appears. The info is filled in and the user then asks is there another task. If no then you return to the main page and if yes, the user is asked to provide the number of activities for task #2.

Once the input boxes are filled in, I plan to use PHP to connect to teh MYSQL DB and input the data to the correct cells.

This continues until all tasks have all the associated activities entered.

Any suggestions?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1