関数の最後に「nexpage.php」というページを開く必要がある関数がありますが、次のものを使用しましたが、どれも機能しません。
インクルードは機能しますが、これを使用すると、現在のページに不要な新しいページが含まれ、現在のページを閉じて次のページを開く必要があります。
function myfunc(){
.........
include "nextpage.php";
echo "<a href='nextpage.php'>NewPage</a>"; <<does not find it
include_once "nextpage.php"; << open it in the page so javascript does not work and login wont disappear
header('Location: nextpage.php'); <<it refresh the page but does not open the nextpage
}