Go to Post First check for any bind in the transmissions, especially chain. Next, check to see if the motors are O.K. Use code as a last resort. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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");
}
?>
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question of the Week [05-02-04]: The Very Merry Month of May EddieMcD Rumor Mill 10 05-05-2004 14:02
A question about control system options computhief263 Control System 7 04-02-2004 14:46
php vs. perl Jack Website Design/Showcase 20 29-12-2002 17:01
What's better, PERL/cgi or PHP/my_sql? mikefrei Programming 10 27-05-2002 22:50


All times are GMT -5. The time now is 13:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi