On 22 July 2011 16:56, Geoff Lane wrote:
> On Friday, July 22, 2011, Floyd Resler wrote:
>
>> I did a fresh install of PHP on a new server. I had gotten used to
>> PHP automatically adding a backslash before single quotes when form
>> data is submitted. It seems that is shut off in my new instal
On Wednesday, March 27, 2002, at 12:03 PM, Julio Nobrega Trabalhando
wrote:
> Haven't seen it either, but you could use:
>
> echo '<' . '?';
>
> So < is separated from ?. Or ? from > for the matter.
That's a good workaround. I'll use that until I hear from above.
Erik
Eri
Try this:
$text = nl2br(htmlspecialchars(stripslashes($text)));
With $text being the data outputted. It will replace apostrophes, quotes,
etc. with their proper html formatting.
Example: input: "PHP is Cool!"
html output: "PHP is Cool!"
Then if you don't want the $quot;, or whatever
> mine always says ask don" lol...actually got it figured out right after muy
last post "rawurlencode" worked great
Thanks though!
> On 26-Aug-2001 [EMAIL PROTECTED] wrote:
> > Tried addslashes also urlencode, neither worked...
> >
> > the input is from a comment area in a form...that
On 26-Aug-2001 [EMAIL PROTECTED] wrote:
> Tried addslashes also urlencode, neither worked...
>
> the input is from a comment area in a form...that adds data to a mysql
> database...the comments contain commas and apostrphes, that when
> you try to subit, screw up the execution of the insert...
Tried addslashes also urlencode, neither worked...
the input is from a comment area in a form...that adds data to a mysql
database...the comments contain commas and apostrphes, that when
you try to subit, screw up the execution of the insert
Any help would be very very very very appreciate
6 matches
Mail list logo