Relative Content

Tag Archive for javascriptphphtml

Not Redirecting to the Web page

I’m trying to create a login system in PHP with JavaScript that redirects users to different pages based on their role (student, tutor, admin). The login process seems to work, but the page redirection isn’t happening correctly. Can someone help me identify what I’m doing wrong?

Subfolder navigation with php

I’m making a web system about radio collections, where one screen consists of creating the name of the main folder and inside it I can add other folders and files, similar to a drive. These elements are created from a js, but I had a lot of doubts when it came to implementing the entry in these folders, creating a card to the right of the main one, and so on, like Google Drive. In php these folders and subfolders will be saved in the database, so I had some ideas about how I could apply this, with state management or parameters in php, saving the name of the folder and passing it via GET, then showing the initially empty contents of it. Someone help me how I could do this, here are some screenshots and parts of the code. enter image description here

How can I make sure all my links in my SPA keep the user within my SPA?

I recently started working on my first SPA. There’s some basic JavaScript and php on it right now. Anyway, the biggest issue I’m having right now, is how can I put links inside my SPA without them sending me into an entirely new page and basically ruining the whole purpose of making my website an app. Here is my code. I will explain more after.

Fetching data from mysql db to display in my webpage

In my system, when a student creates an account, their info is stored in mysql db. I want that once they log in, their name, course and semester are displayed on the top of my webpage but It’s challenging, Can anyone help?