Jump to content

dynamic form


freelance84

Recommended Posts

Is this possible?

 

Please look at the attached image.

 

I am trying to create a team creation page for a site I am making, however I want the user to be able to see all the names they enter before the information is passed to the .php file to send it to the MySQL table.

 

1.  So, every time the user enters a name and presses the "add name" button the name details are stored in an Javascript array and displayed in the box below.

2.  When the user presses the "save team" button the team name is passed by a simple form post and the javascript array is passed to a php array and then processed ready to be passed to the MySQL table.

 

The problem is I don't know to do the first bit (number1).

 

Any ideas or pointers?

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/199535-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.