Re: [PHP] Textarea to road a text file

2009-10-31 Thread Jean Lee
Yes, I just want to edit a file in the textarea! thank you. Jay Blanchard jblanch...@pocket.com wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.local... [snip] htmlheadtitle. body.. ?php $handle = fopen(./menu.php, r); $contents = ; if ($handle)

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? ?php $handle = fopen(./menu.php, r); $contents = ; if ($handle) { while (!feof($handle)) { $buffer = fgets($handle); $contents = $contents . $buffer; } fclose($handle); } echo textarea

RE: [PHP] Textarea to road a text file

2009-10-29 Thread Jay Blanchard
[snip] htmlheadtitle. body.. ?php $handle = fopen(./menu.php, r); $contents = ; if ($handle) { while (!feof($handle)) { $buffer = fgets($handle); $contents = $contents . $buffer; } fclose($handle); } echo textarea cols=80 rows=30 . $contents .

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

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 versus...@ymail.com 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

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 htmlheadtitle. body.. ?php $handle = fopen(./menu.php, r); $contents = ; if ($handle) { while (!feof($handle)) { $buffer

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: first line second

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Stuart
2009/5/15 PHPScriptor cont...@phpscriptor.com: 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 Manoj Sterex
Well, instead of storing the text from the textarea directly into the db, validate it and wrap it with br / 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 stut...@gmail.com wrote:

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 pre? 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 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?

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 linebr /second 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 br

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 br / 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

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 form: first line

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

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

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 pa...@quillandmouse.comwrote: 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

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Stuart
2009/5/15 PHPScriptor cont...@phpscriptor.com: 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

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

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 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 an

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 pre? Is this a PHP problem or more a HTML problem? HTML doesn't recognize newlines when it displays

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 pre? Is this a PHP problem or more a HTML

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 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 pre? Is this a PHP problem or more a HTML problem?

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: first

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 pre tag or the nlbr() function depending upon what you want to do with the output. Both solutions [1 and

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Michael A. Peters
tedd wrote: Also, one can generate validation errors using br / because there are three different varieties of the tag, namely br, br /, and br/ -- 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

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Tom Worster
On 5/15/09 10:12 AM, Stuart stut...@gmail.com 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

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 stut...@gmail.com 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 --

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 store

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 on

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. quote Hi all! I am trying to make a PHP HTML editor. I have made the

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]

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 write

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:04 PM +0100 From:

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

RE: [PHP] textarea posting duplicate text

2005-03-01 Thread Elizabeth Lawrence
] 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: HTML HEAD TITLETEST/TITLE /HEAD BODY FORM ACTION=test.php

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 There

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 repeated, as

Re: [PHP] textarea posting duplicate text

2005-03-01 Thread Dan Tappin
/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: Elizabeth Lawrence Subject: Re: [PHP] textarea

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 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

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 entered

Re: [PHP] Textarea and Php

2005-01-18 Thread Hugh Danaher
Ross, Try something like this in your form: textarea name=description rows=4 cols=40$description/textarea You can then edit the contents of the cell Hope this helps. Hugh - Original Message - From: Ross Hulford [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, January 18,

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 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
##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 data

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 Donald Zend

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

2004-10-10 Thread Minuk Choi
] 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 browser) //contents of Doc1.php include functions.php include formProcessor.php include

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

2004-10-10 Thread Sam Smith
- Original Message - From: Sam Smith [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

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(

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 =

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

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

2004-07-20 Thread Dan Joseph
Hi, With textarea, there is no value... textarea$foo/textarea -Dan Joseph $foo = 'tabletrtd class='red'blah/td/tr/table'; textarea value='$foo'/textarea -- 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 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 IFRAME yet, but the most widely used one does. Another approach would be to use sprinf() formatting to imbed

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 textarea/textarea tabs. -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 12:59 PM To: [EMAIL PROTECTED] Subject: [PHP] textarea/display

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

2004-07-20 Thread John W. Holmes
bruce wrote: textarea value='$foo'/textarea Please review your HTML textbook. There is no value attribute for a textarea. textarea$foo/textarea -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP

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

2004-07-20 Thread bruce
said that the textarea 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... Have you considered an imbedded frame

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 table format. this would allow me to highlight the material that the user should modify. however, i

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

2004-07-20 Thread Vail, Warren
, Warren; [EMAIL PROTECTED] Subject: RE: [PHP] textarea/display question... vail... 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

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

2004-07-20 Thread Vail, Warren
.. ps.. to you guys who said that the textarea 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... Have you

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

2004-07-20 Thread Matt M.
ps.. to you guys who said that the textarea 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

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

2004-07-20 Thread Matthew Sims
ps.. to you guys who said that the textarea 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 Jason Davidson
: [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). I'm not sure that all browsers support IFRAME yet, but the most widely used one does. Another approach would be to use

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

2004-07-20 Thread John W. Holmes
bruce wrote: ps.. to you guys who said that the textarea 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

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 user to

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 regards to

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

2004-07-20 Thread Marek Kilimajer
bruce wrote: $foo = 'tabletrtd class='red'blah/td/tr/table'; textarea value='$foo'/textarea Everything but one thing has been said: You should always use htmlspecialchars() to output value of textarea $foo = 'tabletrtd class='red'blah/td/tr/table'; echo 'textarea ...' . htmlspecialchars($foo) .

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 : tr class=content_title becomes : tr class=\content_title\ stripslashes and stripcslashes seem not to work... stripslashes() works, just

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 textarea. Unfortunately, they both allow far too much control... at most I only

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 without

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(); textarea?= htmlspecialchars()?/textarea

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 problem

2003-01-23 Thread Ernest E Vogelsinger
At 14:34 23.01.2003, Denis L. Menezes said: [snip] ?php Print 'textarea name=OrgAddress cols=44 rows=5 id=textarea value='.htmlspecialchars($row['OrgName']).'/textarea'; ? [snip] This won't work. textarea needs

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 br 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 new line

2002-07-05 Thread PHPCoder
When you echo, you are adding to HTML, so you need br 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 brtextarea name='aria' cols='50' rows='2'$string/textarea; adi

Re: [PHP] textarea new line+mysql update

2002-07-05 Thread adi
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, 2002 4:05 PM Subject: RE: [PHP] textarea new line $string=-line1\n -line2 \n-line3; \n Henning Sittler

Re: [PHP] textarea new line+mysql update

2002-07-05 Thread colin mcdonald
, July 05, 2002 4:05 PM Subject: RE: [PHP] textarea new line $string=-line1\n -line2 \n-line3; \n Henning Sittler www.inscriber.com -Original Message- From: adi [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 9:04 AM To: php-general Subject: [PHP] textarea new line i want

RE: [PHP] textarea/textarea

2002-03-14 Thread Rick Emery
stripslahses($variable) -Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: [PHP] textarea/textarea Hi, I have the following probably very simple problem. Basically what I need to do is to collect

RE: [PHP] textarea/textarea

2002-03-14 Thread Rick Emery
I mean: stripslashes($variable) -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:24 AM To: 'Vlad Kulchitski'; [EMAIL PROTECTED] Subject: RE: [PHP] textarea/textarea stripslahses($variable) -Original Message- From: Vlad Kulchitski

Re: [PHP] textarea/textarea

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 10:26 AM, Vlad Kulchitski wrote: The only problem I have is I need to display textarea on step 3, and once again the same textarea on step 4 so that user has another chance to review what s/he's written in and on the fifth page all date submitted to db. The

Re: [PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT
action... 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 textarea echo addslashes($text); /textarea Op woensdag 27 februari 2002 16:38

RE: [PHP] textarea

2002-02-27 Thread Cal Evans
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: textarea name='test'/textarea when i try to FILL it with tekst (so

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 :) textarea name='test'/textarea when i try to FILL it with

Re: [PHP] textarea

2002-02-27 Thread hugh danaher
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 php has to do with it: You said it yourself, so what's this doing on a PHP list :) textarea name='test'/textarea

Re: [PHP] textarea form input converting lt; and gt; to

2002-02-20 Thread Analysis and Solutions
Hi Byron: Byron Albert wrote: The major problem here is that some times we want lt; 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 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, into this: Hi my

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 textarea when I am previewing or saving/recalling the text all the newline characters are gone. Any good ideas! Thanks Lars Stampe Try textarea name=foo rows=10 cols=50

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

2001-05-03 Thread Stampe, Lars
: 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 message box which is a textarea when I am previewing or saving/recalling the text all the newline characters are gone. Any good ideas! Thanks

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

2001-05-03 Thread elias
ear like it was typed!)? Regards Lars Stampe -Original 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-c

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

2001-05-03 Thread Jon Haworth
Try this: ?php $textfield = nl2br($textfield); echo $textfield; ? 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

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 ! textarea name=textfield cols=45 rows=5 wrap=physical/textarea physical means pyhsical not HARD echo nl2br($textfield); //turns your nl´s in br´s That should work Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: