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.. Link to comment https://forums.phpfreaks.com/topic/19350-textarea-explode/ 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? Link to comment https://forums.phpfreaks.com/topic/19350-textarea-explode/#findComment-83938 Share on other sites More sharing options...
brown2005 Posted September 1, 2006 Author Share Posted September 1, 2006 VARCHAR Link to comment https://forums.phpfreaks.com/topic/19350-textarea-explode/#findComment-83939 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] Link to comment https://forums.phpfreaks.com/topic/19350-textarea-explode/#findComment-83951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.