You are here: Include with variables - why does this work ? « PHP Programming Language « IT news, forums, messages
Include with variables - why does this work ?

Posted by TMN on 01/12/07 07:17

Hi All

I am new to PHP and I do not understand why the following works ??

$file=urlencode("displayIncidents.php");
echo "<a href=statistics.php?fileName=$file&delete=true>Delete
Incident</a><br />";

When this link is selected the statistics.php simply includes the file
that passed to it - but why does it find the file and not try to load
the literal 'fileName=$file&delete=true' (that obviously does not
exist) ?

thanks
Tim

 

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

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