ok, let's get right down to it:
i have a text area [name="info"], and would like to get ech line to hold it's own piece of information... so the textarea input reads out like this:
here's the code to decipher the info:
it then writes it to a file... i'd like it to read out like this:
but it writes it like this:
what the hell am i doing wrong??
i have a text area [name="info"], and would like to get ech line to hold it's own piece of information... so the textarea input reads out like this:
Code:
line1
line2
line3
PHP:
<?
$info= trim("$info");
$info= explode("\n", $info);
$info= implode("|", $info);
$info= trim("$info");
?>
Code:
line1|line2|line3
Code:
line1
|line2
|line3