Hi all,
I have a problem with a textarea in a form.
The form is parsed using the split option, splitting the textarea input at each tab (\t). However, when a newline arrives in the textarea, it does not split there, but it should. Is there anyway to have PHP add a \t behind every line in the textarea before it starts splitting ?
To clarify it a bit, here's the source of the page I'm talking about:
<form method="post" action="parser.php">
<textarea cols="50" rows="10" name="test"><? echo $_POST['test']; ?></textarea>
<input type="submit" value="Go">
</form>
<?
if(isset($_POST['test'])) {
$split = split("\t",$_POST['test']);
print_r($split);
}
?>
Would be awesome
Thanks in advance,
iNF