RE: [PHP] Quotes in Heredoc

2011-02-28 Thread Bob McConnell
From: Ashim Kapoor From Ashley Sheridan The quotes you mention are in the HTML, nothing to do with PHP. HTML will work without the quotes in most cases (unless there's a space in the value for the attribute) but the quotes are required in XHTML and will cause unexpected results. Can you

RE: [PHP] Quotes in Heredoc

2011-02-28 Thread tedd
At 8:23 AM -0500 2/28/11, Bob McConnell wrote: From: Ashim Kapoor From Ashley Sheridan The quotes you mention are in the HTML, nothing to do with PHP. HTML will work without the quotes in most cases (unless there's a space in the value for the attribute) but the quotes are required in

[PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
Dear All, I am learning PHP by reading a book. My query pertains to the following lines : - $form_str = EOFORMSTR TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=CENTER WIDTH=621 TR TD ROWSPAN=2IMG WIDTH=15 HEIGHT=1 SRC=../images/spacer.gif/TD . My query is that is it true that we don't

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashley Sheridan
On Sat, 2011-02-26 at 14:41 +0530, Ashim Kapoor wrote: Dear All, I am learning PHP by reading a book. My query pertains to the following lines : - $form_str = EOFORMSTR TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=CENTER WIDTH=621 TR TD ROWSPAN=2IMG WIDTH=15 HEIGHT=1

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
The quotes you mention are in the HTML, nothing to do with PHP. HTML will work without the quotes in most cases (unless there's a space in the value for the attribute) but the quotes are required in XHTML and will cause unexpected results. Can you elaborate on the XHTML part? Do you mean they are

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashley Sheridan
On Sat, 2011-02-26 at 16:27 +0530, Ashim Kapoor wrote: The quotes you mention are in the HTML, nothing to do with PHP. HTML will work without the quotes in most cases (unless there's a space in the value for the attribute) but the quotes are required in XHTML and will cause unexpected

Re: [PHP] Quotes in Heredoc

2011-02-26 Thread Ashim Kapoor
Yes, in HTML the quotes are optional, but they are required in XHTML documents: http://www.w3.org/TR/xhtml1/diffs.html#h-4.4 Ok Thank you, Ashim

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Peter Lind
On 6 August 2010 04:10, Rick Dwyer rpdw...@earthlink.net wrote: Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation on. Something that confuses me is how the code on the page is

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 07:34, Peter Lind peter.e.l...@gmail.com wrote: On 6 August 2010 04:10, Rick Dwyer rpdw...@earthlink.net wrote: Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 11:00 PM -0400 8/5/10, Paul M Foster wrote: On Thu, Aug 05, 2010 at 10:10:26PM -0400, Rick Dwyer wrote: echo table border='1'tr And elsewhere on the page it follows: echo 'table border=1tr Not acceptable and sloppy. Be consistent in your coding style. In general, HTML

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Floyd Resler
On Aug 6, 2010, at 8:08 AM, tedd wrote: At 10:10 PM -0400 8/5/10, Rick Dwyer wrote: 2nd question, in the 3 [2] lines below: $checkstat = select field from table where fieldid = $field_id; $result1 = @mysql_query($checkstat,$connection) or die(Couldn't execute query); If I were to

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 13:31, tedd tedd.sperl...@gmail.com wrote: I have a grammar question for the group. I said above: neither CSS, PHP, or any web language exist in a vacuum. Is the word neither appropriate in this sentence? Normally, two items can be compared by neither  or nor, but what

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Andrew Ballard
On Fri, Aug 6, 2010 at 8:31 AM, tedd tedd.sperl...@gmail.com wrote: While it may not be obvious, the statement: table border=1 is flawed (IMO). The best way to handle this is to define a class (or id) for the table in a css file and then set the border (i.e., styling) to whatever you want.

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:09 AM -0400 8/6/10, Andrew Ballard wrote: On Fri, Aug 6, 2010 at 8:31 AM, tedd tedd.sperl...@gmail.com wrote: While it may not be obvious, the statement: table border=1 is flawed (IMO). The best way to handle this is to define a class (or id) for the table in a css file and then

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Bill Guion
At 8:31 AM -0400 08/06/10, tedd wrote: Cheers, tedd PS: Considering that this is Friday. I have a grammar question for the group. I said above: neither CSS, PHP, or any web language exist in a vacuum. Is the word neither appropriate in this sentence? Normally, two items can be compared

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 16:18, Bill Guion bgu...@comcast.net wrote: At 8:31 AM -0400 08/06/10, tedd wrote: Cheers, tedd PS: Considering that this is Friday. I have a grammar question for the group. I said above: neither CSS, PHP, or any web language exist in a vacuum. Is the word neither

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Josh Kehn
On Aug 5, 2010, at 10:10 PM, Rick Dwyer wrote: Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation on. Something that confuses me is how the code on the page is written where in

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Rick Dwyer
On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote: On Thu, Aug 5, 2010 at 7:10 PM, Rick Dwyer rpdw...@earthlink.net wrote: Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation on.

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Adam Richardson
On Thu, Aug 5, 2010 at 10:53 PM, Rick Dwyer rpdw...@earthlink.net wrote: On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote: For HTML, -always- use double quotes. tag attribute=bar / is the right way. tag attribute='bar' / is the wrong way. I'd go into more explanation but there

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson simples...@gmail.com wrote: I would suggest that saying tag attribute='bar' / is the wrong way is a rather strong assessment.  Whether you're talking about SGML (the grandparent), XML (the parent), or XHTML, the use of a single quote is

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson simples...@gmail.com wrote: Tim Bray, who knows a little bit about XML dialects (tongue in cheek), appears to default to the single quote as his delimiter of choice: http://www.tbray.org/ongoing/ Side note, looks like his stuff is auto-generated

Re: [PHP] Quotes in querys

2009-01-15 Thread Thodoris
It is over head, but it caches the execution plan for multiple runs of the script. So different users with different data will use the same cached query on the database. Saving processing time. It also prevents SQL injection on the fly because you are indicating what data type each place

[PHP] Quotes in querys

2009-01-14 Thread MikeP
Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If there is anything I still have trouble with after all these years its

RES: [PHP] Quotes in querys

2009-01-14 Thread Jônatas Zechim
Try session_start(); $sql = SELECT Netid FROM User WHERE Netid='.$_SESSION['phpCAS']['user'].'; -Mensagem original- De: MikeP [mailto:mpel...@princeton.edu] Enviada em: quarta-feira, 14 de janeiro de 2009 14:17 Para: php-general@lists.php.net Assunto: [PHP] Quotes in querys Hello, I

Re: [PHP] Quotes in querys

2009-01-14 Thread Robert Stankiewicz
I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. Maybe try this : $q = 'Select Netid from Users where Netid = ' .

Re: [PHP] Quotes in querys

2009-01-14 Thread ceo
You can only interpolate ONE level of array or object indirection in a string. WORKS: ... $foo[x] ... ... $foo-x ... FAILS: ... $foo[x][y] ... ... $foo-x-y ... //almost for sure it fails, never tried... You can use curly braces in side a string to evaluate something: WORKS: ...

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid =

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:34 AM, MikeP mpel...@princeton.edu wrote: Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote: Hello, I am trying to get the

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
Thanks, Thats the kind of help I was looking for. Mike c...@l-i-e.com wrote in message news:20090114162142.65944.qm...@o2.hostbaby.com... You can only interpolate ONE level of array or object indirection in a string. WORKS: ... $foo[x] ... ... $foo-x ... FAILS: ... $foo[x][y] ... ...

Re: [PHP] Quotes in querys

2009-01-14 Thread ceo
Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an execution plan... Forgive me if I'm wrong, but: Caching an execution plan for a prepared statement that is run only once in the script is just overhead, no? Or can it actually re-use the same

Re: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 8:41 AM, MikeP mpel...@princeton.edu wrote: Thanks, Thats the kind of help I was looking for. Mike c...@l-i-e.com wrote in message news:20090114162142.65944.qm...@o2.hostbaby.com... You can only interpolate ONE level of array or object indirection in a string.

Re: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote: Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an execution plan... Forgive me if I'm wrong, but: Caching an execution plan for a prepared statement that is run only once in the script is

Fwd: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry k...@kyleterry.com wrote: On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote: Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an execution plan... Forgive me if I'm wrong, but: Caching an

Re: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If there is anything I

Re: Fwd: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 10:11 -0800, Kyle Terry wrote: On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry k...@kyleterry.com wrote: On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote: Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an

Re: [PHP] Quotes in querys

2009-01-14 Thread Frank Stanovcak
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1231962521.3613.13.ca...@localhost.localdomain... On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string

Re: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 15:24 -0500, Frank Stanovcak wrote: Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1231962521.3613.13.ca...@localhost.localdomain... On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: Hello, I am trying to get the following to work: Select Netid from

Re: [PHP] Quotes in querys

2009-01-14 Thread Chris
It is over head, but it caches the execution plan for multiple runs of the script. So different users with different data will use the same cached query on the database. Saving processing time. It also prevents SQL injection on the fly because you are indicating what data type each place

Re: [PHP] Quotes?

2006-09-08 Thread Michelle Konzack
Am 2006-09-05 23:12:43, schrieb Gustav Wiberg: I want to save this to a string... script language=javascript var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new ^^ String (Math.random()).substring (2, 11); document.write('a

[PHP] Quotes?

2006-09-05 Thread Gustav Wiberg
I want to save this to a string... script language=javascript var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); document.write('a href=http://clk.tradedoubler.com/click?p=48859a=1122503g=16352388; target=_blankimg src='+uri+'

Re: [PHP] Quotes?

2006-09-05 Thread Martin Marques
On Tue, 5 Sep 2006, Gustav Wiberg wrote: I want to save this to a string... script language=javascript var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); document.write('a

Re: [PHP] Quotes?

2006-09-05 Thread Dave Goodchild
Or use a heredoc? -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

Re: [PHP] Quotes?

2006-09-05 Thread J R
On 9/6/06, Gustav Wiberg [EMAIL PROTECTED] wrote: I want to save this to a string... script language=javascript var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); document.write('a

[PHP] Quotes in form textarea fields

2004-10-08 Thread Sam Smith
I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob is high Then from

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Robby Russell
On Fri, 2004-10-08 at 06:22 -0700, Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Marek Kilimajer
Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob is high So

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Jordi Canals
A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ Tha't's normal beacuse you have magic_quotes_gpc_on In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Andrew Kreps
On Fri, 08 Oct 2004 06:22:22 -0700, Sam Smith [EMAIL PROTECTED] wrote: Then from FROM2.php we Submit BACK to FROM1.php and enter it back into the textarea field with: type=textarea, value=? echo $_POST['hidden']); ? I'd like to add that you can also use the following syntax for textarea

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread John Holmes
Andrew Kreps wrote: I'd like to add that you can also use the following syntax for textarea fields: input type=textarea?= $_POST['hidden'] ?/textarea which may also get you past the quoting problem. You mean you can use: textarea name=hidden?=htmlentities($_POST['hidden'])?/textarea unless you

[PHP] quotes in text.

2004-07-16 Thread Ed Curtis
I'm having some difficulty with quotation marks, both single and double, input via a textarea in a form. Here's and example of text. Trying out the Special Character thing. Page 1 is the form. Page 2 is the data shown back to the user. original POST data is not touched. NO stripslashes

Re: [PHP] quotes in text.

2004-07-16 Thread John W. Holmes
Ed Curtis wrote: I'm having some difficulty with quotation marks, both single and double, input via a textarea in a form. Here's and example of text. Trying out the Special Character thing. Page 1 is the form. Page 2 is the data shown back to the user. original POST data is not touched. NO

Re: [PHP] quotes in text.

2004-07-16 Thread Ed Curtis
On Fri, 16 Jul 2004, John W. Holmes wrote: Let's say you have $_POST['text'] from the user. To display the value back to the user with magic_quotes_enabled, you'd do this: echo htmlentities(stripslashes($_POST['text'])); To put the value into a hidden form element, you'd do this:

Re: [PHP] quotes in text.

2004-07-16 Thread Justin Patrin
On Fri, 16 Jul 2004 11:58:55 -0500 (EST), Ed Curtis [EMAIL PROTECTED] wrote: On Fri, 16 Jul 2004, John W. Holmes wrote: Let's say you have $_POST['text'] from the user. To display the value back to the user with magic_quotes_enabled, you'd do this: echo

Re: [PHP] quotes in text.

2004-07-16 Thread Ed Curtis
On Fri, 16 Jul 2004, Justin Patrin wrote: This is why he said: Since you seem to have magic_quotes_gpc enabled, you can put the value directly into your query. You shouldn't use htmlentities when putting it into the DB. Use it when displaying the text. I tried it both ways and it only

Re: [PHP] quotes in text.

2004-07-16 Thread John W. Holmes
Ed Curtis wrote: On Fri, 16 Jul 2004, Justin Patrin wrote: This is why he said: Since you seem to have magic_quotes_gpc enabled, you can put the value directly into your query. You shouldn't use htmlentities when putting it into the DB. Use it when displaying the text. I tried it both ways and it

Re: [PHP] quotes in text.

2004-07-16 Thread Ed Curtis
On Fri, 16 Jul 2004, John W. Holmes wrote: Ed Curtis wrote: On Fri, 16 Jul 2004, Justin Patrin wrote: This is why he said: Since you seem to have magic_quotes_gpc enabled, you can put the value directly into your query. You shouldn't use htmlentities when putting it into the DB. Use it

Re: [PHP] quotes in text.

2004-07-16 Thread Matt M.
Ok then, I want to know how to do it the right way but just using $_POST['text'], as stated before, in my query still cuts off the text at the quote. While passing this field between pages I don't do anything to it but when I want to show it to the user I would use

Re: [PHP] quotes in php.ini

2003-10-29 Thread Curt Zirzow
* Thus wrote Evan Nemerson ([EMAIL PROTECTED]): On Tuesday 28 October 2003 11:29 pm, Rolf Brusletto wrote: Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Tuesday 28 October 2003 11:10 pm, Leif K-Brooks wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Yup. I've got the highlight_file thing from earlier working with ini entries, and I'm

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Tuesday 28 October 2003 10:46 pm, [EMAIL PROTECTED] wrote: Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which doesn't work). The only work-around I can think

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Why not? - E -

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Why

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
- Edwin - wrote: Why not? Because that's what the standard says. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Wed, 29 Oct 2003 03:22:54 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: - Edwin - wrote: Why not? Because that's what the standard says. Interesting. Where? - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo!

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Tue, 28 Oct 2003 22:05:56 -0800 Evan Nemerson [EMAIL PROTECTED] wrote: On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string =

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
- Edwin - wrote: Interesting. Where? www.w3.org -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Wednesday 29 October 2003 12:30 am, - Edwin - wrote: On Tue, 28 Oct 2003 22:05:56 -0800 Evan Nemerson [EMAIL PROTECTED] wrote: On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow

Re: [PHP] quotes in php.ini

2003-10-29 Thread Curt Zirzow
* Thus wrote Leif K-Brooks ([EMAIL PROTECTED]): Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Sure it is, the quote character can be either ' or and will validate perfectly fine at w3c. now

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Wed, 29 Oct 2003 03:29:13 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: - Edwin - wrote: Interesting. Where? www.w3.org ? Sorry, *won't* find it there... In fact, a quick Google search gives you this: http://www.w3.org/TR/REC-html32 [quote] Attribute values can be quoted using

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Tue, 28 Oct 2003 22:28:12 -0800 Evan Nemerson [EMAIL PROTECTED] wrote: On Wednesday 29 October 2003 12:30 am, - Edwin - wrote: On Tue, 28 Oct 2003 22:05:56 -0800 Evan Nemerson [EMAIL PROTECTED] wrote: On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: Hi, On Wed, 29

[PHP] quotes in php.ini

2003-10-28 Thread Evan Nemerson
Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which doesn't work). The only work-around I can think of is doing ini_set()'s in an auto_prepend_file, and that's not acceptable for my

Re: [PHP] quotes in php.ini

2003-10-28 Thread Rolf Brusletto
Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which doesn't work). The only work-around I can think of is doing ini_set()'s in an auto_prepend_file, and that's not

Re: [PHP] quotes in php.ini

2003-10-28 Thread ary . p . wibowo
Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which doesn't work). The only work-around I can think of is doing ini_set()'s in an auto_prepend_file, and that's not

Re: [PHP] quotes in php.ini

2003-10-28 Thread Evan Nemerson
On Tuesday 28 October 2003 11:29 pm, Rolf Brusletto wrote: Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which doesn't work). The only work-around I can think of

[PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
Lets say I'm trying to extract some data from an HTML document. I want to get the values of the 'src' attributes of various tags. For example- img src=http://www.yahoo.com; here's the pattern I've been trying- /\bsrc=(['|])[^\\1]*[\\1]/im Basically, match the 'src=' followed by some type of

RE: [PHP] Quotes in regular expressions

2003-08-21 Thread Ford, Mike [LSS]
On 21 August 2003 17:03, Thaddeus J. Quintin wrote: Lets say I'm trying to extract some data from an HTML document. I want to get the values of the 'src' attributes of various tags. For example- img src=http://www.yahoo.com; here's the pattern I've been trying-

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
-- SNIP -- If single-quoting (better, if you don't variable interpolation) you don't even need to escape the backslashes, so: $pattern = '/\bsrc=([\'|])[^\1]*[\1]/im'; -- SNIP -- nope, not quite... Here's what I've got- $pattern='/\bsrc=([\'|])([^\1])*[\1]/im'; the string that's coming

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Scott Fletcher
Try parsing it as a string where the double quote would become a string. See if that help. (Parse the whole characters into strings then find the double quote.) Thaddeus J. Quintin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- SNIP -- If single-quoting (better, if you don't

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
The biggest part of my problem was that I had already called htmlspecialchars on the string, so there was no quotes to match! Duh. Even after I fixed that it was still turning into a hassle, so I just made two checks, one for single quotes, and, failing that, one for double quotes. not the

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Scott Fletcher
That may be why! It's the htmlspecialchars() that is the issue.. The signle quote get convert into this, not sure if this apply to your situation though. --snip-- Reference : Special Characters in HTML left single quote lsquo; ' right single quote rsquo; ' --snip-- Thaddeus

RE: [PHP] quotes

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Lso . [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 18:32 ok i see why i didnt work but i dont know why. can anyone tell me why this works: input name=testfield type=text value=? echo htmlentities($company) ? but this doesn't: echo input

[PHP] quotes

2003-06-25 Thread Lso .
Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i have a page that displays this information in a series of text fields. I have done this so you can alter the information in the fields hit edit and the

Re: [PHP] quotes

2003-06-25 Thread Adam Voigt
Try a textarea. Example: textarea rows=5 cols=40 ?php echo(stripslashes($whatever)); ? /textarea On Wed, 2003-06-25 at 10:20, Lso . wrote: Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i have a page

Re: [PHP] quotes

2003-06-25 Thread Lso .
Yes!! You are the man! It works! Thank you all for the fast response. Lucas Owens www.lucasowens.com www.technoiraudio.com Try a textarea. Example: _ The new MSN 8: advanced junk mail protection and 2 months FREE*

Re: [PHP] quotes

2003-06-25 Thread Lso .
Does anyone know why this works this way? seems kinda odd that a textarea will display it correctly but a normla field will not. Try a textarea. Example: Lucas _ Tired of spam? Get advanced junk mail protection with MSN 8.

Re: [PHP] quotes

2003-06-25 Thread Adam Voigt
Cause of the quotes around the value, example: input type=text value=my nickname is hank or bob The HTML parser gets confused by the 's around hank, so since the textarea doesn't use quote's to delimit the value, it works fine. On Wed, 2003-06-25 at 10:37, Lso . wrote: Does anyone know why

Re: [PHP] quotes

2003-06-25 Thread Lso .
understood. thanks for the help. Lucas Owens www.lucasowens.com www.technoiraudio.com From: Adam Voigt [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Lso . [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] quotes Date: 25 Jun 2003 10:47:56 -0400 Cause of the quotes around

Re: [PHP] quotes

2003-06-25 Thread Leif K-Brooks
Lso . wrote: Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i have a page that displays this information in a series of text fields. I have done this so you can alter the information in the fields hit

RE: [PHP] quotes

2003-06-25 Thread Petre Agenbag
)?/textarea -Original Message- From: Lso . [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 4:21 PM To: [EMAIL PROTECTED] Subject: [PHP] quotes Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i

Re: [PHP] quotes

2003-06-25 Thread Chris Sherwood
: [PHP] quotes Cause of the quotes around the value, example: input type=text value=my nickname is hank or bob The HTML parser gets confused by the 's around hank, so since the textarea doesn't use quote's to delimit the value, it works fine. On Wed, 2003-06-25 at 10:37, Lso . wrote: Does

Re: [PHP] quotes

2003-06-25 Thread Adam Voigt
=\text\ - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: Lso . [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 7:47 AM Subject: Re: [PHP] quotes Cause of the quotes around the value, example: input type=text value=my nickname is hank or bob

Re: [PHP] quotes

2003-06-25 Thread Chris Sherwood
9:04 AM Subject: Re: [PHP] quotes Umm, in his first email, he specifically said all the quotes were already escaped with slashes and it didn't help. On Wed, 2003-06-25 at 11:50, Chris Sherwood wrote: or you would escape the quote by putting a \ in front of it that way the engine knows

Re: [PHP] quotes

2003-06-25 Thread Lso .
Thanks everyone. Honestly I tried so many things that Im not sure exactly what combinations I tried. The textfield trick works, and I so sick of looking at this script Im moving on. Ill try something else the next time around. Thanks again for all of the excellent fast help!! Lucas Owens

Re: [PHP] quotes

2003-06-25 Thread Leif K-Brooks
Lso . wrote: Thanks everyone. Honestly I tried so many things that Im not sure exactly what combinations I tried. The textfield trick works, and I so sick of looking at this script Im moving on. Ill try something else the next time around. Thanks again for all of the excellent fast help!!

Re: [PHP] quotes

2003-06-25 Thread Lso .
it doesnt work, i just tried it. the text is still cut off after the quote Just try htmlentities()! A textarea is for multiple lines of text! _ Tired of spam? Get advanced junk mail protection with MSN 8.

Re: [PHP] quotes

2003-06-25 Thread Steve Marquez
I had the same problem. I had my ISP turn magic quotes on in the php.ini file on their server. As soon as they did that, everything worked just fine. -Steve Marquez Marquez Design [EMAIL PROTECTED] www.marquez-design.com it doesnt work, i just tried it. the text is still cut off after the

Re: [PHP] quotes

2003-06-25 Thread Jason Wong
PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:04 AM Subject: Re: [PHP] quotes Umm, in his first email, he specifically said all the quotes were already escaped with slashes and it didn't help. On Wed, 2003-06-25 at 11:50, Chris Sherwood wrote: or you would escape

Re: [PHP] quotes

2003-06-25 Thread Jason Wong
On Thursday 26 June 2003 00:52, Lso . wrote: it doesnt work, i just tried it. the text is still cut off after the quote Just try htmlentities()! A textarea is for multiple lines of text! Show some code please. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

  1   2   >