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:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 12:24 AM
To: [EMAIL PROTECTED]; 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:[EMAIL PROTECTED]]
> Sent:         Tuesday, January 30, 2001 8:22 AM
> To:   [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]]
> > Sent: Tuesday, 30 January 2001 4:13 PM
> > To: [EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: 
> > [EMAIL PROTECTED]
> > 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to