Problems creating a guestbook
| From: | Marian Seitner | Date: | Sat, 28 Apr 2001 11:39:32 +0000 |
| Subject: | Problems creating a guestbook | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52694@lists.php.net to get a copy of this message | ||
Hello!
Last night I wrote a HTML document containing a <form> which asks for name
(input), email adress(input) and the message(textarea). These values are
sended to "preview.php". At the moment this script only shows the
informations formerly entered. The problem is that when I echo the $message
variable there are no returns reported. How can I do this? Thanx in advance.
The form:
<html>
<title>PHP Testsite</title>
<body>
<form action="preview.php" method="post">
Name: <input name="name"><br>
eMail: <input name="email"><br><br>
<textarea name="message" rows=4 cols=40></textarea><br><br>
<input type="submit" value="Eintragen">
</FORM>
</body>
</html>
The preview script:
<html>
<body>
<script language="php">
echo "Name: $name<br>";
echo "eMail: $email<br>";
echo "$message"; /* This only shows a singe line, also when returns are
entered /*
</script>
</body>
</html>