You are here: Re: Why won't variable echo? « PHP Programming Language « IT news, forums, messages
Re: Why won't variable echo?

Posted by Shelly on 10/19/06 20:28

"Chris Hope" <blackhole@electrictoolbox.com> wrote in message
news:4536c656@news.orcon.net.nz...
> affiliateian@gmail.com wrote:
>
>> Just moved web hosts and noticed that this:
>>
>> <?php echo "$f"; ?>
>>
>> used to work when there was an ?f= in the URL like so:
>> http://www.mydomain.com/index.html?f=yes
>>
>> Now it doesn't at the new host.
>>
>> I want to echo out "yes" in the HTML.
>>
>> Any ideas?

I have made it a habit to always write something like that as:

<?php echo '"' . $f . '"'; ?>

or

<?php echo $f; ?>

and I always say <?php


(single-double-single quotes)

Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация