<[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dont use a directory but an url
> like
> header("Location: http://www.php.net");
>
Thanks, that made it work.
But now comes the next problem. When finshed logging in login.php is
reloaded with a confirmation text ('You're logged in. Click the button to go
back'). But, at the bottom of the page the following error message appears:
Fatal error: Cannot redeclare createlinks() (previously declared in
c:\apache\htdocs\ha\recycle\lankar.php:6) in
c:\apache\htdocs\ha\recycle\lankar.php on line 5
The problem is: the call for the function createlinks() is done from the
previous page (index.php), the file where I user header(), and I can't see
that the function has bin called for yet. Index.php looks as follows:
<?php
if (!isset($login)) {
header("Location:
http://127.0.0.1/ha/login/login.php?goal=log&goback=$PHP_SELF");
} else {
include("../recycle/head.php");
if($skrivut != "jepp") { createLinks(); }
include("../gjenvinn/foot.php");
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php