Jump to content

inserting multiple text input fields into a mysql db using a textbox


RTT

Recommended Posts

Please could someone help me with this query. I am trying to use a javascript function that inserts addtional textboxes on a page in a form and then I would like to take that data that is inserted into these textboxes depending on the number added by the user via the javascript function and insert this data into a mysql database using php and each text insertion must be on a new line within the database.

 

Example: textbox 1 = joe and textbox 2 = soap

            textbox 3 = sam and textbox 4 = adams

 

However each textbox will write to the same coloumn so textbox 1 to colomn 1 and textbox 2 to coloumn 2 and textbox 3 to coloumn 1 and textbox 4 to coloumn 2. I trust I am making sense here. I know it will be something to do with an array using variables and a loop function.

 

[attachment deleted by admin]

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.