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 X
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.
>
>
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
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 resu
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
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
> WIDTH=621>
>
> SRC=../images/spacer.gif>
>
>
> .
>
> My query is that is it true that we don't need
On 6 August 2010 16:18, Bill Guion 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 "neithe
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 compare
At 9:09 AM -0400 8/6/10, Andrew Ballard wrote:
On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote:
While it may not be obvious, the statement:
>
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
On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote:
> While it may not be obvious, the statement:
>
>
>
> 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. For
> example, your HTML wo
On 6 August 2010 13:31, tedd 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 about
> more
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");
>>
>>
At 9:05 PM -0700 8/5/10, Michael Shadle wrote:
Leave the single quotes for parameters, indexes, code, not attributes - $.02
Agreed.
"Render unto Caesar (HTML) the things that are Caesar's and unto God
(PHP -- Lord forgive me) the things that are God's."
In other words, when writing code in
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 "
And elsewhere on the page it follows:
> echo '
Not acceptable and sloppy. Be consistent in your coding style. In
general, HTML attributes should be surrounded by do
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 recode in the latter style, should they not look
On 6 August 2010 07:34, Peter Lind wrote:
> On 6 August 2010 04:10, 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
On 6 August 2010 04:10, 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
> one
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson 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 by something, so
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson wrote:
> I would suggest that saying 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
> perfectly valid, and has served a purpose si
On Thu, Aug 5, 2010 at 10:53 PM, Rick Dwyer wrote:
>
> On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote:
>
> >
> > For HTML, -always- use double quotes.
> >
> > is the right way.
> > is the wrong way.
> >
> > I'd go into more explanation but there simply doesn't need to be one.
>
I would sugg
On Thu, Aug 05, 2010 at 10:10:26PM -0400, 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 writ
On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote:
> On Thu, Aug 5, 2010 at 7: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.
>>
>> Somethin
On Thu, Aug 5, 2010 at 7: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 i
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
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
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
holde
On Wed, 2009-01-14 at 15:24 -0500, Frank Stanovcak wrote:
> "Ashley Sheridan" 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 wher
"Ashley Sheridan" 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 type.
>> No
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 anyt
On Wed, Jan 14, 2009 at 9:11 AM, 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 just ov
> 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
On Wed, Jan 14, 2009 at 8:41 AM, MikeP wrote:
> Thanks, Thats the kind of help I was looking for.
> Mike
> 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
Thanks, Thats the kind of help I was looking for.
Mike
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] ..."
> "
On Wed, Jan 14, 2009 at 11:34 AM, MikeP wrote:
>
> ""Eric Butera"" wrote in message
> news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com...
>> On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote:
>>> Hello,
>>> I am trying to get the following to work:
>>> "Select Netid from Users where
""Eric Butera"" wrote in message
news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com...
> On Wed, Jan 14, 2009 at 11:17 AM, 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
On Wed, Jan 14, 2009 at 11:17 AM, 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 anyth
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:
WOR
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 = "' . $_SESSION[p
Am 2006-09-05 23:12:43, schrieb Gustav Wiberg:
> I want to save this to a string...
>
>
On 9/6/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
I want to save this to a string...
var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new
String (Math.random()).substring (2, 11);
docume
Or use a heredoc?
--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk
On Tue, 5 Sep 2006, Gustav Wiberg wrote:
I want to save this to a string...
var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new
String (Math.random()).substring (2, 11
Andrew Kreps wrote:
I'd like to add that you can also use the following syntax for textarea fields:
which may also get you past the quoting problem.
You mean you can use:
unless you prefer depreciated code and cross site scripting
vulnerabilities...
http://www.w3.org/TR/html4/interact/forms.htm
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:
>
which may also get you past the quoting problem.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
> 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:
> Then from FROM2.php we Submit BACK to FROM1.php and enter it b
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: So it looks:
(hope this is what you meant)
You forgot ending quote, but that does no
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:
> Then from FROM2.php
> 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 stripslashes($_POST[
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
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 i
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 on
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 htmle
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
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 strips
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 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 quo
* Thus wrote Leif K-Brooks ([EMAIL PROTECTED]):
> Curt Zirzow wrote:
>
> >Try reversing the quotes:
> >error_prepend_string = "";
> >
> >
> 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 the fo
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]>
- 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: http://www.php.net/u
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:
> > > >
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!
http://bb.
- 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: htt
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 = "";
> >
> > Not valid XHTML (not sure if it's even valid HTML).
>
> Why
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 = "";
> >
> >
> Not valid XHTML (not sure if it's even valid HTML).
Why not?
- E -
__
D
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 " >color=\"#ff\">" (which doesn't work).
> >
> >The only work-around I c
On Tuesday 28 October 2003 11:10 pm, Leif K-Brooks wrote:
> Curt Zirzow wrote:
> >Try reversing the quotes:
> > error_prepend_string = "";
>
> 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 wondering how pe
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string = "";
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 law.
--
PHP General Ma
* 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 " > >color=\"#ff\">
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 " >color=\"#ff\">" (which doesn't work).
> >
> >The only work-around I can
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 "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 n
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 "" (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 pu
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 ‘ '
right single quote ’ '
--snip--
"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
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 do
-- 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 comi
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-
> http://www.yahoo.com";>
>
> here's the pattern I've been trying-
>
> /\bsrc=(['|"])[^\\
> -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:
>
>
>
> but this doesn't:
>
> echo "";
Because by default htmlentities will convert double quotes but n
LOL my mistake jason I should have paid more attention
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:26 PM
Subject: Re: [PHP] quotes
> On Thursday 26 June 2003 01:33, Chris Sherwood wrot
On Thursday 26 June 2003 01:33, Chris Sherwood wrote:
> I dont know what you were thinking but this is in a php list
>
> when you render html with php and you want double quotes in the html you
> MUST escape them
>
> otherwise you dont use double quotes
Sorry, it was the context of the thing:
>
--- "Lso ." <[EMAIL PROTECTED]> wrote:
> ok i see why i didnt work but i dont know why.
>
> can anyone tell me why this works:
>
>
>
> but this doesn't:
>
> echo "";
It works for me, at least it does what I think you mean it to do. I'm not a big
fan of single-quoted attributes in HTML, but it
IL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:58 AM
Subject: Re: [PHP] quotes
> On Thursday 26 June 2003 00:02, Chris Sherwood wrote:
> > well thats seems unlikely as I do it all the time..
> >
> > how ever I am not going to argue p's and q's ...
> > if i
im stupid. it works. so sorry. htmlentities did the trick. i had a chunk
of code lingering from a former attempt at fixing it that screwed it all up.
thanks again everyone.
Lucas
_
The new MSN 8: advanced junk mail protection
When you view the html source is all of the text including the quotes there?
>>> "Lso ." <[EMAIL PROTECTED]> 06/25/03 12:06PM >>>
go ahead an try it. the quote is quite clearly in the database, but when i
try to put it back in a form field everything is cut off after the quote.
and i tried stri
here ya go:
function dbconnect(){
$dbh=mysql_connect ("**", "**", "**") or die ('I cannot connect
to the database because: ' . mysql_error());
mysql_select_db ("**");
}
$dbname = "***";
$urlname = "parteditlists.php";
function drawtable2($id, $company, $division, $contact, $
. there
is too much stuff running on this serever to take that risk.
Lucas Owens
www.lucasowens.com
www.technoiraudio.com
From: Jason Wong <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] quotes
Date: Thu, 26 Jun 2003 00:58:40 +0800
On Thursday 26 Jun
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
gt" <[EMAIL PROTECTED]>
> To: "Chris Sherwood" <[EMAIL 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 es
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
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.
http://join.msn.com/?pag
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!!
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
ww
<[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:
>
quote.
>
> ie input type=\"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:
MAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 7:47 AM
Subject: Re: [PHP] quotes
> Cause of the quotes around the value, example:
>
>
>
> The HTML parser gets confused by the "'s around hank,
> so since the textarea doesn't use quote's to delimit the
> va
What you also need is to htmlspecialchars() the vars that you echo as form
element values, else your HTML will be broken if one of the vars contains "
. This should work for both text fields and textareas
or
-Original Message-
From: Lso . [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
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 ed
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
Caus
Cause of the quotes around the value, example:
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 this works this way? seems kinda odd that a tex
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.
http://
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*
http://join.msn
1 - 100 of 125 matches
Mail list logo