Re: [PHP] textarea/display question...

2004-07-21 Thread John W. Holmes
Dennis Gearon wrote: Make sure to remove tags via: $var_that_will_be_displayed = strip_tags( $var_from_user_input_via_POST_or_GET_or_COOKIE ); if you are going to display or mail it as part of a link(email or URL), you might do this instead: $var_that_will_be_part_of_a_link = strip_tags

RE: [PHP] textarea/display question...

2004-07-21 Thread Dennis Gearon
Make sure to remove tags via: $var_that_will_be_displayed = strip_tags( $var_from_user_input_via_POST_or_GET_or_COOKIE ); if you are going to display or mail it as part of a link(email or URL), you might do this instead: $var_that_will_be_part_of_a_link = strip_tags( rawurldecode(

Re: [PHP] textarea/display question...

2004-07-20 Thread Marek Kilimajer
bruce wrote: $foo = 'blah'; Everything but one thing has been said: You should always use htmlspecialchars() to output value of textarea $foo = 'blah'; echo '' . htmlspecialchars($foo) . ''; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] textarea/display question...

2004-07-20 Thread Pablo Gosse
Stut wrote: > On Tue, 20 Jul 2004 11:51:22 -0700, bruce <[EMAIL PROTECTED]> > wrote: >> with an iframe... can i allow the user to make changes... and then >> capture the "data" as a value for a post within a form..??? >> >> in other words...does it closely give me what a textarea does with >> reg

Re: [PHP] textarea/display question...

2004-07-20 Thread Stut
On Tue, 20 Jul 2004 11:51:22 -0700, bruce <[EMAIL PROTECTED]> wrote: > with an iframe... can i allow the user to make changes... and then capture > the "data" as a value for a post within a form..??? > > in other words...does it closely give me what a textarea does with regards > to allowing a use

Re: [PHP] textarea/display question...

2004-07-20 Thread John W. Holmes
bruce wrote: ps.. to you guys who said that the doesn't have a value=''.. it does... No, it doesn't. Pleae upgrade your textbooks. http://www.w3.org/TR/html4/interact/forms.html#h-17.7 -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PH

Re: [PHP] textarea/display question...

2004-07-20 Thread Jason Davidson
Sent: Tuesday, July 20, 2004 11:20 AM > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: [PHP] textarea/display question... > > Have you considered an imbedded frame? (Looks like a textarea, with the > ability to imbed all types of controls (and tables) within it).

RE: [PHP] textarea/display question...

2004-07-20 Thread Matthew Sims
> > ps.. to you guys who said that the doesn't have a value=''.. it > does... Please, in this documentation from the W3C's site, show me where there's a value attribute for textarea. http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#h-17.7 --Matthew Sims --

Re: [PHP] textarea/display question...

2004-07-20 Thread Matt M.
> ps.. to you guys who said that the doesn't have a value=''.. it > does... Where did you find this out? I was pretty sure that is did not have the value attribute. http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/textarea.asp http://www.w3.org/TR/REC-html40/interact/forms.htm

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
will return a multi-dimension array; $returnarray = $_GET["farray"]; Hope this gets you started. Warren Vail -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 11:51 AM To: Vail, Warren; [EMAIL PROTECTED] Subject: RE: [PHP] textarea/display q

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
r the submit, like changing a selection on a list; this is a Hope this helps, Warren Vail -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 11:51 AM To: Vail, Warren; [EMAIL PROTECTED] Subject: RE: [PHP] textarea/display question... vail...

Re: [PHP] textarea/display question...

2004-07-20 Thread Justin Patrin
On Tue, 20 Jul 2004 10:59:06 -0700, bruce <[EMAIL PROTECTED]> wrote: > hi.. > > i'm presenting a textarea to the user... > > i'd like to be able to display the information within the textarea in a > format. this would allow me to highlight the material that the user > should modify. however, i c

RE: [PHP] textarea/display question...

2004-07-20 Thread bruce
u guys who said that the doesn't have a value=''.. it does... -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 11:20 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] textarea/display question... Ha

Re: [PHP] textarea/display question...

2004-07-20 Thread John W. Holmes
bruce wrote: Please review your HTML textbook. There is no "value" attribute for a textarea. $foo -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] textarea/display question...

2004-07-20 Thread Will Collins
I've always gotten errors when trying to use the "value" property of a textarea. Put the value info between the tabs. -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 12:59 PM To: [EMAIL PROTECTED] Subject: [PHP] textarea/display question... hi.. i

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
Have you considered an imbedded frame? (Looks like a textarea, with the ability to imbed all types of controls (and tables) within it). I'm not sure that all browsers support yet, but the most widely used one does. Another approach would be to use sprinf() formatting to imbed leading/trailing s

RE: [PHP] textarea/display question...

2004-07-20 Thread Dan Joseph
Hi, With textarea, there is no value... $foo -Dan Joseph > $foo = 'blah'; > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] textarea/display question...

2004-07-20 Thread Jonathan Haddad
Anything inside that textarea actually get's displayed. So they will actually see that HTML. I don't know of a way to actually highlight sections within the text area, and I don't think there is one. You could highlight the text outside of the textarea though. Jon bruce wrote: hi.. i'm presen