Jump to content

dynamic form


ag3nt42

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.