Thread: PHP Question
View Single Post
  #2   Spotlight this post!  
Unread 22-05-2004, 18:19
Guest
 
Posts: n/a
Re: PHP Question

This should work.

You can't "echo" an array. nl2br converts all new lines into HTML <BR> tags.

Correct code:
PHP Code:
$poem = $_POST['poem'];
 
<?if($poem == ""){
echo(
"no poem");
}else{
$show nl2br($poem);
echo(
"$show");
}
?>