Ask a Question related to PHP Development, Design and Development.
-
yawnmoth #1
replacing carriage returns?
so... i'm trying to remove all carriage returns in the input i get
from GET, and am trying to replace them with three dots...
however, this never seems to work... i'm still getting carriage
returns...
here's my script... any ideas as to what's wrong?:
<?php
$asdf = str_replace("%0D%0A","...",$_GET['text']);
print $asdf;
?>
<form method="GET" action="atest02.php">
<textarea rows="7" name="text" cols="29"></textarea>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form><p>
yawnmoth Guest
-
Removing carriage returns...
Here is the code that I am using to try and remove the Carriage Returns and Line Feeds and replace them both with spaces: ... -
replacing carriage returns in file
Hi, I have a file that I want to import into excell. In order to do that it must be delimited in some manner, because currently it is formatted... -
XML, carriage returns and special characters.
Hi, I'm trying to add dinamic content to my site using Flash and XML. Here is an example: <?xml version="1.0" encoding="utf-8"?> <PHOTOS>... -
My XML import into inDesign doubles the carriage returns
I am using the following XSL to produce an XML from FileMaker Pro The resulting import contains double carriage return wherever a single CR is... -
Extra carriage returns - why?
John Andrews wrote: From previous post in thread: perl -pe 's/NEVERFOUND/NEVERFOUND/g' < foo > bar Hmmmmmm...I was unable to duplicate... -
jn #2
Re: replacing carriage returns?
"yawnmoth" <terra1024@yahoo.com> wrote in message
news:c5t6qv8l81jt4ofso3lecvgca5ibhpgn9b@4ax.com...Instead of the character codes, use escape sequences. Carriage Return is \r> so... i'm trying to remove all carriage returns in the input i get
> from GET, and am trying to replace them with three dots...
>
> however, this never seems to work... i'm still getting carriage
> returns...
>
> here's my script... any ideas as to what's wrong?:
>
> <?php
>
> $asdf = str_replace("%0D%0A","...",$_GET['text']);
> print $asdf;
>
> ?>
> <form method="GET" action="atest02.php">
> <textarea rows="7" name="text" cols="29"></textarea>
> <input type="submit" value="Submit">
> <input type="reset" value="Reset">
> </form><p>
>
and New Line is \n.
Something like this:
$asdf = str_replace("\r","...",$_GET['text']);
jn Guest



Reply With Quote

