Thread: PHP Question
View Single Post
  #1   Spotlight this post!  
Unread 22-05-2004, 16:05
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
PHP Question

While trying to get back in the swing of things (again) w/ PHP, I decided to make a lil' poetry script. Basically, you type in some info, and then it sends you to a page asking if the information is correct, then it saves it as a file.

My problem is in the checking to see if the poem is correct. I can't show the poem. Currently, what I'm doing is:

PHP Code:
$poem = $_POST['poem'];
 
<?if($poem == ""){
 echo(
"no poem");
}else{
 
$show explode("  "$poem);
 echo(
"$show");
}
?>
The thing that is displayed (when there's a poem), is "Array" (w/o quotes). I have looked at the PHP document on this, and couldn't find really anything. Does anyone know how to fix this? (If I don't use explode, and just show the poem, it displays the newline characters as double-spaces).
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"