Re: Cannot get this one correct and working, though simple!
- From: Pedro Graca <hexkid@xxxxxxxxxxx>
- Date: 30 Dec 2005 17:26:00 GMT
Jerry Stuckle wrote:
> Geoff Berrow wrote:
>> Message-ID: <IU5yAgAsnQtDFw$+@xxxxxxxxxxxxxxxxxxx> from Peter Fox
>> contained the following:
>>
>>
>>>>But my problem is that part of the code ...<img src='thumb$i.jpg'> ...
>>>
>>>Single quotes! Try Double.
>>
>>
>> Single quotes are fine as is the code AFAICT.
>>
>
> No, with single quotes $i is not expanded. It would be with double quotes.
Single quotes *within* double quotes, as the OP had, do not stop PHP
from interpolating the variables!
Try it
<?php
$name = 'Jerry';
echo "Name is $name"; /* only double quotes */
echo 'Name is $name'; /* only single quotes */
echo "Name is '$name'"; /* single quotes *within* double quotes */
echo 'Name is "$name"'; /* double quotes *within* single quotes */
?>
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
.
- References:
- Cannot get this one correct and working, though simple!
- From: Jofio
- Re: Cannot get this one correct and working, though simple!
- From: Peter Fox
- Re: Cannot get this one correct and working, though simple!
- From: Geoff Berrow
- Re: Cannot get this one correct and working, though simple!
- From: Jerry Stuckle
- Cannot get this one correct and working, though simple!
- Prev by Date: Hey need help with PHPMailer and checkbox form fields
- Next by Date: Re: Listing objects
- Previous by thread: Re: Cannot get this one correct and working, though simple!
- Next by thread: Re: Cannot get this one correct and working, though simple!
- Index(es):
Relevant Pages
|