Separating textarea line breaks into different database rows
问题 I have a textarea form input where users input ingredients for a recipe. What I originally had was a dynamic, Javascript based 'add an ingredient' field but realised this was not good for accessibility. Originally I was separating each input field out into it's own row in my database and was wondering how I could do this with a textarea? What I assume is done is separating out each line break and placing it into it's own row in the table but I do not know the syntax for that. Further Details