(Disclaimer: This is a few days old, but I am just now catching up.)
--- Scott Fletcher <[EMAIL PROTECTED]> wrote:
> In one of the reply to the original posting I made, someone say that
> htmlentities() would work and upon submission, the PHP's $_REQUEST,
> $_POST, $_GET would get the apostrophe s
Scott Fletcher wrote --- napísal::
In one of the reply to the original posting I made, someone say that
htmlentities() would work and upon submission, the PHP's $_REQUEST, $_POST,
$_GET would get the apostrophe somehow. (The conversion somewhere would
change it back)
the somewhere is in the br
In one of the reply to the original posting I made, someone say that
htmlentities() would work and upon submission, the PHP's $_REQUEST, $_POST,
$_GET would get the apostrophe somehow. (The conversion somewhere would
change it back)
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[
--- Scott Fletcher <[EMAIL PROTECTED]> wrote:
> I'm using data that goes from the HTML textbox to PHP to MYSQL to
> PHP to HTML textbox. The only trouble I have is to escape the
> apostrophe character when it is put into the HTML textbox by PHP
> (from MySQL).
>
> --snip--
> echo "";
> --snip--
I'm using data that goes from the HTML textbox to PHP to MYSQL to PHP to
HTML textbox. The only trouble I have is to escape the apostrophe character
when it is put into the HTML textbox by PHP (from MySQL).
--snip--
echo "";
--snip--
I can't use the HTML feature like " or something because the
try "stripslashes()"
Brona
> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 29, 2003 7:03 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] how to escape '\'
>
>
> I have magic_quotes_gpc ON
>
>
Manisha Sathe wrote:
I have magic_quotes_gpc ON
'Here's is' - this comes out after HTTP post as
'Here\'s is'
But i want to get back the original string as it is - how to change ?
www.php.net/stripslashes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
I have magic_quotes_gpc ON
'Here's is' - this comes out after HTTP post as
'Here\'s is'
But i want to get back the original string as it is - how to change ?
manisha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try HTMLSpecialChars function.
http://www.php.net/htmlspecialchars
Regards,
Jan
- Original Message -
From: "Martin Thoma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 11:59 AM
Subject: [PHP] How to escape " in hidden fiel
Hi,
Tuesday, September 3, 2002, 4:35:45 PM, you wrote:
>> Try this with single quotes:
>>
>>
MT> Year, but then I couldn't use single-quotes in the text ;-) The problem is that
MT> the content of the field is inserted by the user, so I cannot say if he uses
MT> single- and/or double-quotes
> Try this with single quotes:
>
>
Year, but then I couldn't use single-quotes in the text ;-) The problem is that
the content of the field is inserted by the user, so I cannot say if he uses
single- and/or double-quotes.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi Martin
You can also do this
HTH
Martin :)
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 11:24 AM
To: Martin Thoma
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How to escape " in hidden field?
Hi,
Monday, September 2, 2002,
Hi,
Monday, September 2, 2002, 7:59:43 PM, you wrote:
MT> Hello!
MT> I have a simple hidden input-field like
MT>
MT> Now sometimes I need to insert " like:
MT>
MT> But this makes PHP (or the browser?) cutting of the string after "Hello
MT> ". How can I escape the "?
MT> Martin
Try this wit
Hello!
I have a simple hidden input-field like
Now sometimes I need to insert " like:
But this makes PHP (or the browser?) cutting of the string after "Hello
". How can I escape the "?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
ote:
> Date: Mon, 22 Jan 2001 16:00:53 +0530
> From: Hrishi <[EMAIL PROTECTED]>
> To: PHP General Discussion <[EMAIL PROTECTED]>
> Subject: [PHP] how to escape
>
> Hello all,
>
> I'm working on a script that processes and returns a php script.
> i need
Hello all,
I'm working on a script that processes and returns a php script.
i need to know how to escape the in the string constants that
make up the script.
thanks,
Hrishi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
\$
Soeren Staun-Pedersen - [EMAIL PROTECTED]
--
"The internet is full, beat it"
- Me.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PRO
I have a dilemma.
I have recently started using CVS to maintain my website, and am using
some CVS tags ($Id$, etc) and they show up as follows:
those spare ':' should look like this:
Author: $Author: joes $
Revision date: $Date: 2001/01/10 21:10:10 $
ID: $Id: index.php,v 1.3 2001/01/10 21
Thanks very much.^^
""Zenith"" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó
942grb$ted$[EMAIL PROTECTED]">news:942grb$ted$[EMAIL PROTECTED]...
> ... may be I have use a wrong subject, but I can't think a more suitable
one
> sorry first!
>
> say, I have a function like this
> function foo()
> {
> babababa...
>
l to
if($name=='Max' || $name=='Maxim')
this is quite useful for usability purposes...
Cheers,
Maxim Maletsky
-Original Message-
From: Zenith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 7:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to escape from a functi
> And I have one more question, what is the meaning of 'or'?
> e.g.
> $db=mysql_connect("localhost","root","password") or die ("could not
> connect");
One more thing, which is important to me as a newbie (as I most certainly
am), you can make a custom error message for the die error; which is
imp
On Wed, 17 Jan 2001, Zenith wrote:
> ... may be I have use a wrong subject, but I can't think a more suitable one
> sorry first!
>
> say, I have a function like this
> function foo()
> {
> babababa...
> /*at this point, I want to output a lot of html, can I use a ':' to escape
> from there?*/
> /
> say, I have a function like this
> function foo()
> {
> babababa...;
> /*at this point, I want to output a lot of html, can I use a ':' to escape
> from there?*/
echo '';
echo 'chris is great';
return; // would just stop the function
OR if you want to call the function from
... may be I have use a wrong subject, but I can't think a more suitable one
sorry first!
say, I have a function like this
function foo()
{
babababa...
/*at this point, I want to output a lot of html, can I use a ':' to escape
from there?*/
/*I know I can do this is a if construct or for... const
24 matches
Mail list logo