Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Forms

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
I am trying to set up a situation where a new line of text boxes opens in a form once the previous one has been completed. Customers can order any number of products that they want and I need to have a dynamic number of fields available so that once one order has been made, a new set of fields appears for them to order another product if they wish.

That's not explained very well. I hope it can be understood.
 
Hmmmm... I would think that the most efficient way to do something like this would be with a shopping cart type of approach, where they click "Add to Cart", and when they do, it refreshes the page, adding whatever was in the text box before to the shopping cart object, and then leaving the box blank and ready for the next entry...

Possibly adding their previous entry to some table at the top of the page with modifying functions available to them by clicking on the item...

Good luck!:)
Paul Prewett
 
You might be able to find a resolution using DHTML as well. It will involve some heavy client-side script and code, but it'll be more tedious than anything else.

However you want to solve the problem depends on whether or not you care if the user needs to make multiple trips to the webserver, or you want all the data to sit on the client-side machine (making the initial download time much larger). It's up to your implementation.

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top