Re: [PHP] Textarea to road a text file

2009-10-30 Thread Jean Lee
Yes, I just want to edit a file in the textarea! thank you. ""Jay Blanchard"" wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.local... [snip] . .. " . $contents . ""; ?> [/snip] Try http://us3.php.net/manual/en/function.file-get-contents.php

RE: [PHP] Textarea to road a text file

2009-10-29 Thread Jay Blanchard
[snip] . .. " . $contents . ""; ?> [/snip] Try http://us3.php.net/manual/en/function.file-get-contents.php " . $contents . ""; ?> I am unsure what you want to do here, display the menu in the textarea? Or do you want to be able to edit menu.php in the textarea? -- PHP Gene

Re: [PHP] Textarea to road a text file

2009-10-29 Thread John Black
Jean Lee wrote: Could you explain what was my fault concerned about this case? " . $contents . ""; ?> As Andrew pointed out, you need to use htmlspecialchars() echo "" .htmlspecialchars($contents). ""; The reason for that is because the text may contain html control characters like <>&'" w

Re: [PHP] Textarea to road a text file

2009-10-28 Thread Jean Lee
Thank you, Jay Blanchard and Andrew Ballard!!! Could you explain what was my fault concerned about this case? Thanks in advance! My codes were . .. " . $contents . ""; ?> ""Jay Blanchard"" wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.lo

Re: [PHP] Textarea to road a text file

2009-10-28 Thread Andrew Ballard
On Wed, Oct 28, 2009 at 10:39 AM, Jean Lee wrote: > I want to use Textarea as the text-file viewer and editor of my homepage. > But Textarea doesn't work exactly as i intended. > In sometimes, TextArea doesn't show up > and moreover the some parts of the file are displayed(rendered) in browser > w

RE: [PHP] Textarea to road a text file

2009-10-28 Thread Jay Blanchard
[snip]I want to use Textarea as the text-file viewer and editor of my homepage. But Textarea doesn't work exactly as i intended. In sometimes, TextArea doesn't show up and moreover the some parts of the file are displayed(rendered) in browser without TextArea![/snip] Not enough information to comp

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
At 2:10 PM -0400 5/15/09, Tom Worster wrote: On 5/15/09 10:12 AM, "Stuart" wrote: What's your problem with using nl2br? it's not multibyte safe. if you're using mb strings, e.g. for utf8 pages and forms, then use preg_replace (with the u modifier) instead of ml2br Whoa -- and I thought yo

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Tom Worster
On 5/15/09 10:12 AM, "Stuart" wrote: > What's your problem with using nl2br? it's not multibyte safe. if you're using mb strings, e.g. for utf8 pages and forms, then use preg_replace (with the u modifier) instead of ml2br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Michael A. Peters
tedd wrote: Also, one can generate validation errors using "" because there are three different varieties of the tag, namely "", "", and "" -- all of which can be used in different settings. I don't remember which doctypes go with which version (xhtml requires />), but I've run into that pr

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
At 11:19 AM -0400 5/15/09, Robert Cummings wrote: On Fri, 2009-05-15 at 10:54 -0400, tedd wrote: > 4. Or, listen to me (who is somewhere between Rob/Stuart and Sterex) and use either the tag or the nlbr() function depending upon what you want to do with the output. Both solutions [1 and 2] p

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Michael A. Peters
PHPScriptor wrote: Hello, How do you guys handle this "problem". Just a form with a textarea. When I use enters in the textarea it's saved to the db like this: database: "first line second line" when I edit the value in the form: "first line second line" when I output the value to html: "fir

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
At 11:29 AM -0400 5/15/09, Paul M Foster wrote: On Fri, May 15, 2009 at 07:19:24AM -0700, PHPScriptor wrote: Mja, that's not my intention, in that case I also could use nl2br... Why does this problem exists? And why does it work with ? Is this a PHP problem or more a HTML problem? HTML d

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
At 8:38 PM +0530 5/15/09, Manoj Sterex wrote: @tedd: Its just another way of looking at the things. Putting HTML into the DB is not really wrong (perhaps in this context it is). If you do have HTML in the DB, you can directly echo it out and use CSS to style it accordingly. Just my 2 cents. :)

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Robert Cummings
On Fri, 2009-05-15 at 11:29 -0400, Paul M Foster wrote: > On Fri, May 15, 2009 at 07:19:24AM -0700, PHPScriptor wrote: > > > > > Mja, that's not my intention, in that case I also could use nl2br... > > > > Why does this problem exists? And why does it work with ? Is this a PHP > > problem or mor

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Paul M Foster
On Fri, May 15, 2009 at 07:19:24AM -0700, PHPScriptor wrote: > > Mja, that's not my intention, in that case I also could use nl2br... > > Why does this problem exists? And why does it work with ? Is this a PHP > problem or more a HTML problem? HTML doesn't recognize newlines when it displays te

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Robert Cummings
On Fri, 2009-05-15 at 10:54 -0400, tedd wrote: > At 7:22 AM -0700 5/15/09, PHPScriptor wrote: > >Well, the problem is that I have a lot of forms, a lot of data to output, and > >even then, I don't know always where I have a textarea or just a inputfield. > >But true, I could even set the nl2br on a

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Manoj Sterex
@tedd: Its just another way of looking at the things. Putting HTML into the DB is not really wrong (perhaps in this context it is). If you do have HTML in the DB, you can directly echo it out and use CSS to style it accordingly. Just my 2 cents. :) -Sterex On Fri, May 15, 2009 at 8:24 PM, tedd

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
At 7:22 AM -0700 5/15/09, PHPScriptor wrote: Well, the problem is that I have a lot of forms, a lot of data to output, and even then, I don't know always where I have a textarea or just a inputfield. But true, I could even set the nl2br on an input field, it wouldn't make a difference. But I just

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Stuart
2009/5/15 PHPScriptor : > > Well, the problem is that I have a lot of forms, a lot of data to output, and > even then, I don't know always where I have a textarea or just a inputfield. > But true, I could even set the nl2br on an input field, it wouldn't make a > difference. > But I just don't unde

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Manoj Sterex
TinyMCE: http://tinymce.moxiecode.com/ -Sterex On Fri, May 15, 2009 at 7:56 PM, Paul M Foster wrote: > On Fri, May 15, 2009 at 07:03:49AM -0700, PHPScriptor wrote: > > > > > Hello, > > > > How do you guys handle this "problem". > > > > Just a form with a textarea. When I use enters in the textar

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Manoj Sterex
@Robert: True. I was assuming that the text was going to be final and not being edited again. @PHPScriptor: If you do have a lot of textareas to work around with, why don't you give TinyMCE a try. Thats the best option you have got. It replaces the textarea into more of a html compatible one and w

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Manoj Sterex
Well, its not exactly a 'problem' at all. The textarea just does what its meant to do - accept raw text input and lets you process it via form action. This is neither a PHP or a HTML 'problem'. The reason you cannot see the line breaks when you echo the text on your browser is the fact that the br

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Paul M Foster
On Fri, May 15, 2009 at 07:03:49AM -0700, PHPScriptor wrote: > > Hello, > > How do you guys handle this "problem". > > Just a form with a textarea. When I use enters in the textarea it's saved to > the db like this: > > database: > "first line > second line" > > when I edit the value in the f

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Robert Cummings
On Fri, 2009-05-15 at 19:48 +0530, Manoj Sterex wrote: > Well, instead of storing the text from the textarea directly into the db, > validate it and wrap it with tags (replace \n) and then store it. > This way you needn't use nl2br every time you retrieve the text from db. Don't do that unless it

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread PHPScriptor
Yes, I thought about that. But then you have a problem when you're going to 'edit' that data back in a form. Then you get "first linesecond line" in your textarea. Manoj Sterex wrote: > > Well, instead of storing the text from the textarea directly into the db, > validate it and wrap it with t

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread PHPScriptor
Well, the problem is that I have a lot of forms, a lot of data to output, and even then, I don't know always where I have a textarea or just a inputfield. But true, I could even set the nl2br on an input field, it wouldn't make a difference. But I just don't understand why this problem exists? Wha

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread PHPScriptor
Mja, that's not my intention, in that case I also could use nl2br... Why does this problem exists? And why does it work with ? Is this a PHP problem or more a HTML problem? Robert Cummings wrote: > > On Fri, 2009-05-15 at 07:03 -0700, PHPScriptor wrote: >> Hello, >> >> How do you guys handle

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Manoj Sterex
Well, instead of storing the text from the textarea directly into the db, validate it and wrap it with tags (replace \n) and then store it. This way you needn't use nl2br every time you retrieve the text from db. -Sterex On Fri, May 15, 2009 at 7:42 PM, Stuart wrote: > 2009/5/15 PHPScriptor :

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Stuart
2009/5/15 PHPScriptor : > > Hello, > > How do you guys handle this "problem". > > Just a form with a textarea. When I use enters in the textarea it's saved to > the db like this: > > database: > "first line > second line" > > when I edit the value in the form: > "first line > second line" > > when

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Robert Cummings
On Fri, 2009-05-15 at 07:03 -0700, PHPScriptor wrote: > Hello, > > How do you guys handle this "problem". > > Just a form with a textarea. When I use enters in the textarea it's saved to > the db like this: > > database: > "first line > second line" > > when I edit the value in the form: > "fir

Re: [PHP] textarea html generation problem

2008-09-18 Thread sean greenslade
I prefer the htmlentities because it allows me to edit the real code, not an edited form of the code. All the <> still appear. On Tue, Sep 16, 2008 at 9:41 AM, TQ White II <[EMAIL PROTECTED]> wrote: > > I add str_replace('textarea', 'textareaHIDE', ... to the display code and > the reverse to the

Re: [PHP] textarea html generation problem

2008-09-16 Thread sean greenslade
Thanks to all for your responses. I ended up using htmlentities. Thanks Stephen. Also, the reason I didn't use a premade editor is that I am planning on selling a web-editor system and don't want any troubles with licenses. Hi all! I am trying to make a PHP HTML editor. I have made the entire e

Re: [PHP] textarea html generation problem

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 17:15 +0930, Michael Kubler wrote: > I've just been playing with FCKeditor, it seem pretty good. > Good documentation and I could get it working fairly quickly, although I > haven't got it picking up the style sheet from a secondary domain yet, > but that's probably a PEBKAC

Re: [PHP] Textarea update problem

2007-03-07 Thread Jim Lucas
Delta Storm wrote: [EMAIL PROTECTED] wrote: is there a question here, or are you asking us to write the script for you? - Rick Original Message Date: Wednesday, March 07, 2007 01:54:04 PM +0100 From: Delta Storm <[EMAIL PROTECTED]> To: php-general@lists.php.net S

Re: [PHP] Textarea update problem

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 16.28-kor Delta Storm ezt írta: > [EMAIL PROTECTED] wrote: > > is there a question here, or are you asking us to write the script for > > you? > > > > - Rick > > > > > > Original Message > > > >> Date: Wednesday, March 07, 2007 01:54:0

Re: [PHP] Textarea update problem

2007-03-07 Thread Tijnema !
The file permissions are not set right, Apache is not able to read the PHP file you've just uploaded to your server, chmod it to 644. That should fix it. Tijnema On 3/7/07, Delta Storm <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > is there a question here, or are you asking us to wri

Re: [PHP] Textarea update problem

2007-03-07 Thread Delta Storm
[EMAIL PROTECTED] wrote: is there a question here, or are you asking us to write the script for you? - Rick Original Message Date: Wednesday, March 07, 2007 01:54:04 PM +0100 From: Delta Storm <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] Te

Re: [PHP] textarea posting duplicate text

2005-03-01 Thread Frank Arensmeier
Elizabeth! Have you considered reinstalling PHP on your server? Maybe, it is worth the effort? Regards, Frank 2005-03-01 kl. 17.19 skrev Bret Hughes: On Tue, 2005-03-01 at 08:43, Elizabeth Lawrence wrote: Thanks, Dan. I copied your code exactly and posted it here: http://www.tidefans.com/test.php I

Re: [PHP] textarea posting duplicate text

2005-03-01 Thread John Holmes
Elizabeth Lawrence wrote: Thanks, Dan. I copied your code exactly and posted it here: http://www.tidefans.com/test.php I pasted a large part of O'Henry's "Gift of the Magi" into the textarea, and it gets repeated, as before. There was an Apache2/PHP bug going around that had this issue. It was an

Re: [PHP] textarea posting duplicate text

2005-03-01 Thread Dan Tappin
defans.com/test.php I pasted a large part of O'Henry's "Gift of the Magi" into the textarea, and it gets repeated, as before. Thanks for any help, Elizabeth -Original Message- From: Dan Tappin [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 6:59 PM To: Elizab

RE: [PHP] textarea posting duplicate text

2005-03-01 Thread Bret Hughes
On Tue, 2005-03-01 at 10:19, Bret Hughes wrote: > On Tue, 2005-03-01 at 08:43, Elizabeth Lawrence wrote: > > Thanks, Dan. I copied your code exactly and posted it here: > > http://www.tidefans.com/test.php I pasted a large part of O'Henry's "Gift of > > the Magi" into the textarea, and it gets repe

RE: [PHP] textarea posting duplicate text

2005-03-01 Thread Bret Hughes
On Tue, 2005-03-01 at 08:43, Elizabeth Lawrence wrote: > Thanks, Dan. I copied your code exactly and posted it here: > http://www.tidefans.com/test.php I pasted a large part of O'Henry's "Gift of > the Magi" into the textarea, and it gets repeated, as before. > > Thanks for any help, > Elizabeth

RE: [PHP] textarea posting duplicate text

2005-03-01 Thread Elizabeth Lawrence
appin [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 6:59 PM To: Elizabeth Lawrence Subject: Re: [PHP] textarea posting duplicate text Create a new file: test.php with this exactly in the contents:

Re: [PHP] textarea posting duplicate text

2005-02-28 Thread Richard Lynch
Elizabeth Lawrence wrote: > Hello. I have been asked to look at a PHP issue for someone, and I can't > figure out what the problem is. I'm hoping one of you experts can help! > > They are using Red Hat Linux / Ensim Pro 4.0.2, PHP 4.3.10, and Apache > 2.0. > > The problem: When a lot of text is ent

Re: [PHP] Textarea and Php

2005-01-18 Thread Richard Lynch
Ross Hulford wrote: > Is there a way to add and remove lines of text to a textarea inside a > form? Presumably you mean based on user input like clicking on buttons and things. By that point in time, PHP on the *server* is LONG GONE and not even in the picture. You'll have to use JavaScript. --

Re: [PHP] Textarea and Php

2005-01-18 Thread Hugh Danaher
Ross, Try something like this in your form: $description You can then edit the contents of the cell Hope this helps. Hugh - Original Message - From: "Ross Hulford" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 18, 2005 12:15 AM Subject: [PHP] Textarea and Php Is there a way to add and

RE: [PHP] textarea vs. type="text" data difference?

2004-10-11 Thread Gryffyn, Trevor
Just wanted to point out something little. "text" types are all single-line data items. "textarea" can contain line breaks. Looks like you may have solved your problem already, but wanted to fill in some info that didn't seem to be mentioned. -TG > -Original Message- > From: Sam Smith

Re: [PHP] textarea vs. type="text" data difference?

2004-10-10 Thread Sam Smith
27;s maybe a > scope error... especially if you define the function in formProcessor and it > works fine... > > -Minuk > > - Original Message - > From: "Sam Smith" <[EMAIL PROTECTED]> > To: "PHP" <[EMAIL PROTECTED]> > Sent: Sunday,

Re: [PHP] textarea vs. type="text" data difference?

2004-10-10 Thread Minuk Choi
t; <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Sunday, October 10, 2004 4:25 PM Subject: Re: [PHP] textarea vs. type="text" data difference? ##The data is the same. I've been up a long time. BUT something is still very weird. Doc1.php (loaded in web br

Re: [PHP] textarea vs. type="text" data difference?

2004-10-10 Thread Greg Donald
On Sun, 10 Oct 2004 12:28:53 -0700, Sam Smith <[EMAIL PROTECTED]> wrote: > I have a form with both textarea and text type fields. > > I submit it and do some processing on identical data and get different > results. > > What's up with that. No idea since you didn't post any code. -- Greg Dona

Re: [PHP] textarea vs. type="text" data difference?

2004-10-10 Thread Sam Smith
##The data is the same. I've been up a long time. BUT something is still very weird. Doc1.php (loaded in web browser) //contents of Doc1.php include functions.php include formProcessor.php include form.php Calling the "protectText()" function in "functions.php" from "formProcessor.php" with dat

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

Re: [PHP] textarea and quotes

2004-05-05 Thread John W. Holmes
From: "Vincent DUPONT" <[EMAIL PROTECTED]> > I can't remember the name of the function to remove > the escaping of quotes when submitting a textarea > example : > > becomes : > > stripslashes and stripcslashes seem not to work... stripslashes() works, just make sure you capture the result.

Re: [PHP] textarea rich replacement?

2003-07-15 Thread Marek Kilimajer
Just remove the appropriate buttons. Justin French wrote: Hi all, I've looked at both editize(.com) and HTMLArea, both of which are in-browser Rich Text editor replacements (written in java) for the standard . Unfortunately, they both allow far too much control... at most I only want to offe

Re: [PHP] TextArea vs. URLEncode/URLDecode/quotes

2003-07-09 Thread Arcadius A.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The correct way is: > In validate.php: > if(error) { > if(magic_quotes) stripslashes(); > urlencode(); > } else { > INSERT INTO ... > } > > In form.php: > // urldecode() is not needed, GET variables are already decoded

Re: [PHP] TextArea vs. URLEncode/URLDecode/quotes

2003-07-09 Thread Marek Kilimajer
The correct way is: In validate.php: if(error) { if(magic_quotes) stripslashes(); urlencode(); } else { INSERT INTO ... } In form.php: // urldecode() is not needed, GET variables are already decoded if(magic_quotes) stripslashes(); Arcadius A. wrote: Hello! I have a form w

Re: [PHP] TextArea vs. URLEncode/URLDecode/quotes

2003-07-09 Thread Kevin Stone
- Original Message - From: "Arcadius A." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 12:50 PM Subject: [PHP] TextArea vs. URLEncode/URLDecode/quotes (snip) > So, My question is: What's the best way to get the value of a textarea back > after validation witho

Re: [PHP] textarea problem

2003-01-23 Thread Ernest E Vogelsinger
At 14:34 23.01.2003, Denis L. Menezes said: [snip] > Print 'value="'.htmlspecialchars($row['OrgName']).'">'; > ?> [snip] This won't work. needs its value outside the tag, without an attribute, just plain: Print ''

Re: [PHP] textarea new line+mysql update

2002-07-05 Thread colin mcdonald
m of type? > > tx again > adi > > > - Original Message ----- > From: "Henning Sittler" <[EMAIL PROTECTED]> > To: "'adi'" <[EMAIL PROTECTED]> > Sent: Friday, July 05, 2002 4:05 PM > Subject: RE: [PHP] textarea new line >

Re: [PHP] textarea new line+mysql update

2002-07-05 Thread adi
he newlines disappear! ps.column 1 have type "text" or "varchar(100)" Is a problem of type? tx again adi - Original Message - From: "Henning Sittler" <[EMAIL PROTECTED]> To: "'adi'" <[EMAIL PROTECTED]> Sent: Friday, July 05,

Re: [PHP] textarea new line

2002-07-05 Thread PHPCoder
When you echo, you are adding to HTML, so you need for new lines not \n. There is a function called nl2br that converts the nl into br's for you, so do this; $string="-line1n\ -line2 n\-line3"; $string = nl2br($string); echo "$string"; adi wrote: >i want to add in textarea a string with

Re: [PHP] textarea new line

2002-07-05 Thread PHPCoder
Sorry, you DO need nl's, but it's \n not n\ PHPCoder wrote: > When you echo, you are adding to HTML, so you need for new lines > not \n. There is a function called nl2br that converts the nl into > br's for you, so do this; > > $string="-line1n\ -line2 n\-line3"; > > $string = nl2br($string)

Re: [PHP] textarea

2002-02-27 Thread hugh danaher
t;[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 8:55 AM Subject: Re: [PHP] textarea > On Wednesday 27 February 2002 23:44, Edward van Bilderbeek - Bean IT wrote: > > i think you don't understand the problem > > > > it's just a textarea, no

Re: [PHP] textarea

2002-02-27 Thread Jason Wong
On Wednesday 27 February 2002 23:44, Edward van Bilderbeek - Bean IT wrote: > i think you don't understand the problem > > it's just a textarea, no php has to do with it: You said it yourself, so what's this doing on a PHP list :) > > > when i try to FILL it with tekst (so, in my browser) i

RE: [PHP] textarea

2002-02-27 Thread Cal Evans
Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 9:45 AM To: PHP-General Subject: Re: [PHP] textarea i think you don't understand the problem it's just a textarea, no php has to do with it: when i try to FILL it with tekst (so, in my br

Re: [PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT
tion... Edward - Original Message - From: "Bas Jobsen" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 4:53 PM Subject: Re: [PHP] textarea > > echo addslashes($text); > > > Op woensdag

Re: [PHP] textarea form input converting < and > to < >

2002-02-20 Thread Analysis and Solutions
Hi Byron: Byron Albert wrote: > > The major problem here is that some times we want < and some > times we want to input html tags. The solution depends on what you're trying to do. What's your goal. Are you using the text area to store full web pages, or examples of how to write HTML, or

Re: [PHP] textarea, carriage returns and formatting

2001-11-20 Thread Jim Lucas
not sure what you're getting at. when you pull the text back out of the DB, it should be formatted the same as when it was put in the DB. the \n's should still be intack are you processing the text before it gets entered into the DB? You should be able to do this: Jim - Original Message

Re: [PHP] Textarea returns causing havoc

2001-05-09 Thread Rares
Here is how i do it, and it works: $tmp_desc = str_replace("\t", " ", str_replace("\n", " ", str_replace("\r", " ", $desc))); $desc = $tmp_desc; \t for stipping TABs also - Original Message - From: "Sam" <[EMAIL PROTECTED]> Subject: [PHP] Textarea returns causing havoc > Hi all, > int

RE: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread heinisch
At 14:34 03.05.01 +0200, you wrote: change wrap ! "physical means pyhsical" not HARD echo nl2br($textfield); //turns your nl´s in ´s That should work Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread Jon Haworth
Try this: For more info, have a look at http://www.php.net/nl2br. HTH Jon -Original Message- From: Stampe, Lars [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 13:35 To: [EMAIL PROTECTED] Subject: RE: [PHP] textarea -- what happens to my new lines Thanks for the idea, it didn't

Re: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread elias
t explain a bit further! this is a simple version of the code input.htm:: show.php:: When I put in : 1 2 3 4 I get: 1 2 3 4 how do I fix this ( want it to appear like it was typed!)? Regards Lars Stampe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sen

RE: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread Stampe, Lars
ginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 12:44 To: Stampe, Lars; [EMAIL PROTECTED] Subject: Re: [PHP] textarea -- what happens to my new lines At 13:10 03.05.01 +0200, you wrote: > >I am making a e-card page, and I am having a problem with with my m

Re: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread heinisch
At 13:10 03.05.01 +0200, you wrote: > >I am making a e-card page, and I am having a problem with with my message >box which is a when I am previewing or saving/recalling the text >all the newline characters are gone. Any good ideas! > >Thanks >Lars Stampe Try this make "hard" LF´s Oliver --