yes I am already using POST method there for the above "edit form page" and have implemented the CSRF protection.
1. Great.. DONE !
2. In my page, its like this:-
PHP Code:
if(empty($_REQUEST['do']))
{
# Go to a default catch all
$_REQUEST['do'] = 'main';
}
if($_REQUEST['do'] == 'main') {
// Main page code
}
if($_REQUEST['do'] == 'sub1') {
// sub page 1 code...
}
// and so on.....
So, where do I put
$db->close(); ? at the end of every subpage ? or just once at the very end above
?>
Thank You