Ivan Ivković Posted November 2, 2011 Share Posted November 2, 2011 I made a CMS for TONS of complicated data to insert. I made multiple text boxes for each unit of data (i.e. 10 textboxes for quick-insert of 10 employees). I have text files with tons of data to post to the database. I want to copy 10 units, paste them into the first textbox, and I want it to be pasted to other 9 textboxes. Is that possible? EXAMPLE : (copied text): Name Surname Name Surname Name Surname Name Surname Name Surname Name Surname Name Surname Name Surname Name Surname Name Surname (pasted): 1.textbox > Name Surname 2.textbox > Name Surname 3.textbox > Name Surname 4.textbox > Name Surname 5.textbox > Name Surname 6.textbox > Name Surname 7.textbox > Name Surname 8.textbox > Name Surname 9.textbox > Name Surname 10.textbox > Name Surname Quote Link to comment https://forums.phpfreaks.com/topic/250305-pasting-text-in-multiple-boxes-like-4-part-serial-key-validation-for-installer/ Share on other sites More sharing options...
nogray Posted November 2, 2011 Share Posted November 2, 2011 normal textbox can't accept multi line text (you'll only get the first line), you can either seperate the names with a comma (or other character) or paste them into a textarea. For paste the data into different fields, you can simply add an onkeyup event to your field, split the value and populate the other fields. Quote Link to comment https://forums.phpfreaks.com/topic/250305-pasting-text-in-multiple-boxes-like-4-part-serial-key-validation-for-installer/#findComment-1284355 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.