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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.