brown2005 Posted September 1, 2006 Share Posted September 1, 2006 i want someone to enter results into a textarea likeabcdand then on the post script it will insert them into say table1 as separate entries.. Quote Link to comment Share on other sites More sharing options...
Mutley Posted September 1, 2006 Share Posted September 1, 2006 What field input type will the area you enter results into be? Quote Link to comment Share on other sites More sharing options...
brown2005 Posted September 1, 2006 Author Share Posted September 1, 2006 VARCHAR Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 1, 2006 Share Posted September 1, 2006 [code=php:0]$explodedTextArea = explode("\n", $textArea);[/code]ot to prevent blank lines:[code=php:0]$exploded = preg_split("/\n+/m", $text);[/code] Quote Link to comment 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.