You are here: Re: $try = $_GET["distroMainContent"] -- what $try now equal? - variable problem « PHP Programming Language « IT news, forums, messages
Re: $try = $_GET["distroMainContent"] -- what $try now equal? - variable problem

Posted by samudasu on 02/18/06 11:51

Is this url your website? If not then why would it? The page
"http://www.bluecasts.com/index.php?templateId=PT_distroDemo.txt&distroTitle=priceTitle.php&distroMainContent=prices.php"

doesn't link to your script so there's no $_GET variables available.

Now if you make a page on your own site
http://yoursite/index.php?distroMainContent=whatever
with index.php containing your code then you will see results.
<?php
echo "variable to get $variableToLookFor ";
$try = $_GET["distroMainContent"];
echo " == the server says the variable to get is $try == ";
?>

By the way, you'll need to set $variableToLookFor to something or else
php will throw an error.

 

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

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