Reply to Re: [PHP] Someone please help me with this PHP script.

Your name:

Reply:


Posted by Robert Cummings on 12/18/05 06:33

On Sat, 2005-12-17 at 23:05, Erik Johnson wrote:
> I do not know why this isn't working, but it would be very helpful if
> someone looked over it.
>
> <?
> $defaultpage = "http://lom.game-host.org/uploads/erik/";
>
> If($page == NULL) {
> $page = "one";
> }

What is this magical $page variable? Did you conjure it from thin air?
Or are you one of those coders still using a years old deprecated
feature called register_globals who just upgraded their version of PHP
to a version that disables it by default? Since you're the latter (yes I
can read minds from afar), then what you really want is the following
before you start using $page:

$page = isset( $_GET['page'] ) ? $_GET['page'] : null;

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

[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

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