Re: How to load another php page?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
How can i load another php file ("another.php") directly without an action
(example: clicking on a button)?
[/snip]

If you're looking to check a condition and then add another php file
to your existing page then;

if(isset($var1)) { 
    include ('another.php'); 
    or
    include_once('another.php');
}
is what you're looking for.

If you're looking to redirect to another file based on a condition then;

if(isset($var)){
    header('Location: another.php');
}

will work.


alex hogan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux