Re: Problems creating a guestbook

From: Date: Sat, 28 Apr 2001 11:41:44 +0000
Subject: Re: Problems creating a guestbook
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-52695@lists.php.net to get a copy of this message
Hello, wrong list, try asking on php-general@lists.php.net. This list is for developing PHP itself, not for developing with PHP. Derick On Sat, 28 Apr 2001, Marian Seitner wrote: > 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:&nbsp; <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> > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - derick@php.net SRM: Site Resource Manager - www.vl-srm.net ---------------------------------------------------------------------

« previous php.dev (#52695) next »