ag3nt42 Posted June 12, 2008 Share Posted June 12, 2008 I'm trying to create a dynamic form where I collect information about random items a person might have. For instance say I start them out with 5 static item inputs.. I give them a few buttons.. 1 - ITEM NAME - QTY - ITEMID-1 2 - ITEM NAME - QTY - ITEMID-2 3 - ITEM NAME - QTY - ITEMID-3 4 - ITEM NAME - QTY - ITEMID-4 5 - ITEM NAME - QTY - ITEMID-5 ADDITEM CLEARFORM SUBMIT FORM ... Once they click AddItem I want to generate a new item input as well as incriment all of the numbers EI to item 6. my question... what would be the best way to go about this? I've tried using some JS but to no avail.. and I'm thinking it would end up being way over complicated and wouldn't be able to save the information static... so now i'm thinkin php Maybe like.. onclick=GO TO NEWITEM.php NEWITEM.php - updates the database to add another item input and increments the item numbrs ect.. then it needs to be sent back to the page and output to the user. I just don't know if this is plausable to attempt or if I would be wasting my time.. any suggestions are appreciated.. thanks, ag3nt42 Link to comment https://forums.phpfreaks.com/topic/109960-dynamic-form/ Share on other sites More sharing options...
BlueSkyIS Posted June 12, 2008 Share Posted June 12, 2008 yes it's plausible and you're on the right track. Link to comment https://forums.phpfreaks.com/topic/109960-dynamic-form/#findComment-564270 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.