Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-07-05 Thread Chris Shiflett
(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

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Marek Kilimajer
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

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
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:[

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris Shiflett
--- 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--

[PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
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

RE: [PHP] how to escape '\'

2003-11-28 Thread Bronislav Klučka
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 > >

Re: [PHP] how to escape '\'

2003-11-28 Thread Leif K-Brooks
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

[PHP] how to escape '\'

2003-11-28 Thread Manisha Sathe
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

Re: [PHP] How to escape " in hidden field?

2002-09-03 Thread Jan Kudrman
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

Re[2]: [PHP] How to escape " in hidden field?

2002-09-02 Thread Tom Rogers
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

Re: [PHP] How to escape " in hidden field?

2002-09-02 Thread Martin Thoma
> 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,

RE: [PHP] How to escape " in hidden field?

2002-09-02 Thread Martin Towell
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,

Re: [PHP] How to escape " in hidden field?

2002-09-02 Thread Tom Rogers
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

[PHP] How to escape " in hidden field?

2002-09-02 Thread Martin Thoma
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

Re: [PHP] how to escape

2001-01-22 Thread jeremy brand
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

[PHP] how to escape

2001-01-22 Thread Hrishi
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-

Re: [PHP] How to escape '$' in scripts?

2001-01-22 Thread Soeren Staun-Pedersen
\$ 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

[PHP] How to escape '$' in scripts?

2001-01-22 Thread Joseph Stein
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

Re: [PHP] How to escape from a function?

2001-01-17 Thread Zenith
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... >

RE: [PHP] How to escape from a function?

2001-01-16 Thread Maxim Maletsky
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

Re: [PHP] How to escape from a function?

2001-01-16 Thread James, Yz
> 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

Re: [PHP] How to escape from a function?

2001-01-16 Thread Ignacio Vazquez-Abrams
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?*/ > /

Re: [PHP] How to escape from a function?

2001-01-16 Thread Chris Hayes
> 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

[PHP] How to escape from a function?

2001-01-16 Thread Zenith
... 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