reflux
07-25-2008, 06:45 PM
I've used this simple system which is,
the table in index.php is divided into
-----------------------
banner
-----------------------
home | login
-----------------------
navigation | content
|
|
|
therefore if i click on login which codes <a href="?act=login">login</a>
on the content part in the table
the coding for PHP is
switch ($_GET['act'])
{
case "login": include("content/login.php");
break;
......
}
and it does work, as in it loads login.php
But however the PHP codings for login.php does not work, as such
i made login.php into 1> for viewing and 2> it re-acts login.php again when submit "login" button is hit
such i made the php codings at the top
and for form it's <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
and basically i just wait both the index.php?act=login to work but however it does not work if u have another set of PHP coding in that include file.
Is there another method of doing something like ?id= or ?act or whatever u want and it does perform the actions inside the included php codings?
Sorry i'm a little drunk but yeah i hope you get my drive. and i really do need help as i'm a student and i'm doing my final year project in polytechnic >_> submission for my 1st part of project is to be seen on this coming monday >_<
the table in index.php is divided into
-----------------------
banner
-----------------------
home | login
-----------------------
navigation | content
|
|
|
therefore if i click on login which codes <a href="?act=login">login</a>
on the content part in the table
the coding for PHP is
switch ($_GET['act'])
{
case "login": include("content/login.php");
break;
......
}
and it does work, as in it loads login.php
But however the PHP codings for login.php does not work, as such
i made login.php into 1> for viewing and 2> it re-acts login.php again when submit "login" button is hit
such i made the php codings at the top
and for form it's <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
and basically i just wait both the index.php?act=login to work but however it does not work if u have another set of PHP coding in that include file.
Is there another method of doing something like ?id= or ?act or whatever u want and it does perform the actions inside the included php codings?
Sorry i'm a little drunk but yeah i hope you get my drive. and i really do need help as i'm a student and i'm doing my final year project in polytechnic >_> submission for my 1st part of project is to be seen on this coming monday >_<