you might want to check your coding, but that is a parse error waiting to
happen.
Jim Lucas
- Original Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "'Nathan Cassano'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, Febru
On Thursday, February 7, 2002, at 04:54 PM, Rick Emery wrote:
> I prefer: print" ";
>
> -Original Message-
>
> If there is a quote mark in an input tags value what is the correct way
> to print the quote?
>
>
>
> or
>
>
>
>
It probably doesn't really matter, but from a purist's poi
I prefer: print" ";
-Original Message-
From: Nathan Cassano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Quote in input tag value?
If there is a quote mark in an input tags value what is the correct way
to print the quote?
i'm not sure what you're trying to do, but why not this?
$var = 'foo';
$quoted_var = '"' . $var . '"';
jack
davidt wrote:
> php-general -
>
> how to quote the value of the variable? I am looking for function it is something
>like
> $testvar=false
> quotefunc($testvar);
> now the value is "fa
A couple resources to help :
http://www.php.net/manual/en/language.types.string.php
http://www.zend.com/zend/tut/using-strings.php
Each describes the ability to do :
$var = 'blah "blah" blah';
$var = "blah 'blah' blah";
$var = "blah \"blah\" blah";
And using here doc, <<< , like so
From: <[EMAIL PROTECTED]>
> Unfortunatly thats not an option since some dumb founded people will be
using
> the script and they dont understand that concept...
>
> any other suggestions?
>
> - Peter
Okay, a heredoc may be better then:
blah "blah" blah
END;
echo $title;
?>
The syntax in yo
From: <[EMAIL PROTECTED]>
> Hey,
>
> Wondering if any of you can help me with a problem
>
> im trying to get something like this into $var :
>
> blah "blah" blah
>
> How can I do it if its multi lined
>
> Someone suggested
> content = END <<
> BLAH BLAHC
> BLHAC
> END;
>
> but that doesnt
7 matches
Mail list logo