Jump to content

Archived

This topic is now archived and is closed to further replies.

brown2005

textarea explode

Recommended Posts

i want someone to enter results into a textarea like

a
b
c
d

and then on the post script it will insert them into say table1 as separate entries..

Share this post


Link to post
Share on other sites
[code=php:0]$explodedTextArea = explode("\n", $textArea);[/code]

ot to prevent blank lines:
[code=php:0]$exploded = preg_split("/\n+/m", $text);[/code]

Share this post


Link to post
Share on other sites

×

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.