RE: [PHP-WIN] Text area

From: Date: Wed, 31 Jan 2001 06:58:56 +0000
Subject: RE: [PHP-WIN] Text area
Groups: php.windows 
Request: Send a blank email to php-windows+get-5277@lists.php.net to get a copy of this message
I thought it might be that as well but luckily Yoann sorted it out for with this solution: <"----I'm note sure the attribute "value" works with the tag "textarea". Try this : <textarea name="notes" rows="6" cols="30"> <?php echo $myrow["notes"] ?> </textarea> Yoann.-----"> But thanks for the help. > ---------- > From: Woods Ron Contr SA-ALC/FMIS[SMTP:RON.WOODS@KELLY.AF.MIL] > Sent: Tuesday, January 30, 2001 6:02 PM > To: Mangiola Nunzio Datavia; php-windows@lists.php.net > Subject: RE: [PHP-WIN] Text area > > Your problem is probably not with the form passing the data; it's in your > storing it in the db. Remember there's probably lots of \n characters in a > text field. If you try to put these into a db field your results are > unpredictable; meaning the db software may or may not handle them > properly. > > Try using addslashes ($TextField=addslashes($TextField)) before writing > and > stripslahes ( ($TextField=stripslashes($TextField)) after the db write to > return the data to it's original values. > > Ron Woods/GAI > Sr. Software Engineer > 1777 N.E. Loop 410 > Suite 600 > San Antonio, TX 78217 > Tel: 210-820-2615 > Fax: 210-832-0487 > http://www.gai-inc.com > > -----Original Message----- > From: Mangiola Nunzio Datavia [mailto:NunzioM@Datavia.co.za] > Sent: Tuesday, January 30, 2001 12:24 AM > To: php-windows@lists.php.net; David Harrison > Subject: RE: [PHP-WIN] Text area > > > It does work on the face of it. But when you > query the database the field is empty even if you filled > it in. > > > > > ---------- > > From: David Harrison[SMTP:davidh@webcentral.com.au] > > Sent: Tuesday, January 30, 2001 8:22 AM > > To: php-windows@lists.php.net > > Subject: RE: [PHP-WIN] Text area > > > > Try using the TEXTAREA tag instead: > > > > <TEXTAREA ROWS="5" COLS="55" NAME="boop"> > > > > --dave > > > > > -----Original Message----- > > > From: Mangiola Nunzio Datavia [mailto:NunzioM@Datavia.co.za] > > > Sent: Tuesday, 30 January 2001 4:13 PM > > > To: php-windows@lists.php.net > > > Subject: [PHP-WIN] Text area > > > > > > > > > Hi > > > > > > I'm trying to or half succeeded in creating > > > a guestbook on my intranet site. > > > > > > Now my problem is this: > > > When creating the form I have > > > trouble creating a text area larger > > > than one line. > > > I use at the moment <input type="text" blah blah > > > That gives me one line and it appears in > > > MySQL database. But if I try to add rows="6" > > > cols="70" it still gives me one line. > > > > > > Any suggestions? > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-windows-help@lists.php.net > > > To contact the list administrators, e-mail: > > > php-list-admin@lists.php.net > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > For additional commands, e-mail: php-windows-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#5277) next »