i have make a text area the person write this words
"How Are you"
when he press submit button i want words to be as that How are you
how can i do it?????!!!!!
use a text input button then split the string after the submit. then just go down the array from split and echo the values.
$text_array = split (" ", $text);
http://www.php.net/manual/en/function.split.php
I would use str_replace(' ', "<BR>\n", $text);
to replace all spaces with new lines. If you don't want the html breaks too, remove the <BR> from before the \n
I use windows me when I write <? echo "how\n are\n you?"; ?> its print how are you?
why its not print how are you?
why??????
sigh...did you read my earlier post?
Do you understand that if you're viewing this in a web browser they will line break on <BR> and not on \n?