Category : html

In my webpage I have 2 roles ‘User’ and ‘Admin’. Admins have access to Create, Read, Update, and Delete. Users have access to Create, but can also see short parts of the record on the overview table. if ($_SESSION[‘userRole’] !== ‘ADMIN’) { header(“Location:index.php”); exit; } This is what i use normally before the change i ..

Read more

I am trying to upload txt file in database and also save it in file that been declare I include my file for your references I have tried like this if (isset($filename)) but it did not work <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>TRY</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/font-awesome.min.css" rel="stylesheet"> <link ..

Read more

Question might be stupid however, I am curious how can I for example, after user makes an account, redirect them to the home page and display success message, however I don’t want to use $_SERVER[‘REQUEST_URI’] since people can type paramaters in URL and get the success message. Sourc..

Read more