Well,I gave up on this idea because SESSION doesn't seem to be working,at all.
So instead of using a log-in system I decided to load my configuration.php and show it in a TextArea,allowing the user to edit the "username" and "password" information,and it works fine.
One question:
I have a page that displays some data from a table in MySQL DB.Also,I have a form that has a textbox and a button.I use if for deleting specific rows.For example: there is a row and it has ID=5.So I enter 5 in textfield,click "delete" and my "delete.php" is called...it works fine!But how do I avoid going to "delete.php" after pressing the button?
In my form,I must use action="delete.php".,so using:
PHP Code:
<?php echo htmlentities($_SERVER['PHP_SELF']); ?>
wouldnt work,right?