Re: Form Textarea question

by "Beauford.2002" <beauford.2002(at)rogers.com>

 Date:  Mon, 17 Feb 2003 23:48:39 -0500
 To:  "Art Zoller Wagner" <art(at)zollerwagner.com>
 Cc:  "HWG Basics" <hwg-basics(at)hwg.org>
 References:  p1 markone p12 markone2
  todo: View Thread, Original
This is it.  <textarea name="comment" cols="60" rows="5"
wrap="HARD"></textarea>  The value of the textarea gets written to a mysql
file as part of a guestbook. I'm using PHP to write to mysql.

It is then taken from mysql and displayed on another page.

If I type - the<br>small<br>cat in the textarea, you will get the expected
results, but I don't want users to have to use any html tags when they are
typing a message.

TIA


----- Original Message -----
From: "Art Zoller Wagner" <art(at)zollerwagner.com>
To: "Beauford.2002" <beauford.2002(at)rogers.com>
Cc: "HWG Basics" <hwg-basics(at)hwg.org>
Sent: Monday, February 17, 2003 11:36 PM
Subject: Re: Form Textarea question


> Hm. Interesting.
>
> Actually, in several sites that use PHP for processing, I've used:
>
> <textarea name="msg" rows="8" cols="40" class="greyBg"><?=$_POST['msg']
> ?></textarea>
>
> I took the wrap out, and still get the formating you want. Maybe it's in
how
> you're processing it, if you are. Can you send some snippets of code to
show
> your <textarea> tag and any processing you do?
>
> Art
>
>
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA