Posted by Rik on 08/17/07 12:28
On Fri, 17 Aug 2007 14:22:30 +0200, Heikki <he.mantyla@gmail.com> wrote:=
> well one more thing.
> how to define what page opens first?
> whitout klickings....
> should be something like this:
>
> if ($sivu =3D=3D""){
> $sivu =3D "firstpage";
>
> how do I put it there
>
> ...because now when I go to my http://example.com/index.php
> the error.php opens next to the right link-menu.
$sivu =3D (isset($_GET['sivu']) && !empty($_GET['sivu'])) ? $_GET['sivu'=
] : =
'firstpage';
$sivut =3D array('something');
if (in_array($ivu, $sivut)) include ($sivu.'.php');
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|