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)
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
[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 .
[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
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
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
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
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
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:
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
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?
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
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
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
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
@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
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
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
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
@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
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
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
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
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.
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?
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
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
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
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
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 --
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
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
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
[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]
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
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:
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
]
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
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
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
/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
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
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
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
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,
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.
--
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
##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
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
]
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
- 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
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(
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 =
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
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
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
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
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
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
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
, 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
..
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
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
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
: [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
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
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
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
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) .
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
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
- 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
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
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
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
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);
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
93 matches
Mail list logo