Reply to Re: Include with variables - why does this work ?

Your name:

Reply:


Posted by Rik on 01/12/07 10:13

TMN wrote:
> Thanks - I should have include the statistics code:
>
> $file=$_GET['fileName'];
> echo "Requested File is: ".$file;
> include($file);
>
> The include works and finds 'displayIncidents.php' instead of trying
> to find 'displayIncidents.php&delete=true' - is this because I used
> urlencode ?

No, in $_GET['fileName'] is only displayIncidents.php at this point. The
ampersand divides the GET variables. So, $_GET['delete'] == 'true' (the
string true) at this point. If you want to have the
'displayIncidents.php&delete=true' in one GET variable fileName, you should
(raw)urlencode all of it, this means including the & and =.
--
Rik Wasmus

[Back to original 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

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