All Pages in One!
Is there any way to make the mulitibale application's pages or some parts of it, to be located in one page using DMX. This should be without writing any code or at least minimum. for Example,
$page_no = $_REQUEST["page_no"];
switch ($page_no){
case page1:
echo"<hr>Pag1<h1>";
break;
case page2:
echo"<hr>Pag2<h1>";
break;
case page3:
echo"<hr>Pag3<h1>";
break;
case page4:
echo"<hr>Pag4<h1>";
break;
case page5:
echo"<hr>Pag5<h1>";
break;
}
switch ($page_no){
case page1:
echo"<hr>Pag1<h1>";
break;
case page2:
echo"<hr>Pag2<h1>";
break;
case page3:
echo"<hr>Pag3<h1>";
break;
case page4:
echo"<hr>Pag4<h1>";
break;
case page5:
echo"<hr>Pag5<h1>";
break;
}
Thank You!
Comments
Anithing like this ?
Its's possible and very easy. Look it...
switch ($table){
case "1":
include("page1.php");
break;
case "2":
include("page2.php");
break;
case "3":
include("page3.php");
break;
case "4":
include("page4.php");
break;
case "5":
include("page5.php");
break;
}
?>
Now, if you call to a page like this "index.php?table=1", page1.php will be showed, if yo call it "index.php?table=2", page2.php will be showed.
Only page selected will be loaded.
Excuse my bad english...
RE: Anithing like this ?
You must me logged in to write a comment.