Problem on my connection for a client #60634
Unanswered
ma2t1234
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
I saw a video to manage a customer's registration and login. The login button is on the top right of the screen and when I click it shows me login or registration with a pop up button in java script. I wanted to modify this code to make it work in php with a login processing file that I have already coded and that is correct, but when the login page comes I am entering data from a client that is in my database email address and password I click on connection, but there is still the connection button which is at the top right when it should be replaced by My personal space. I put you a piece of my code and you also have the link of the video on which I was inspired. I put you the link of the video, I hope to be precise enough and if not I don't know how to do it, thank you for your patience.Here is my home page and when I click on it I put an image in bah of what it displays.https://www.youtube.com/watch?v=p1GmFCGuVjw
`
and here is a piece of my script.js
`const wrapper = document.querySelector('.wrapper');
const loginLink = document.querySelector('.login-link');
const registerLink = document.querySelector('.register-link');
const btnPopup = document.querySelector('.btnLogin-popup');
const btnEspaceclient = document.querySelector('.btnEspaceclient-popup');
const iconClose = document.querySelector('.icon-close');
registerLink.addEventListener('click', () => {
wrapper.classList.add('active');
});
loginLink.addEventListener('click', () => {
wrapper.classList.remove('active');
});
btnEspaceclient.addEventListener('click', () => {
wrapper.classList.add('active-popup');
});
btnPopup.addEventListener('click', () => {
wrapper.classList.add('active-popup');
});
iconClose.addEventListener('click', () => {
wrapper.classList.remove('active-popup');
});
`
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions