+ 3
How can I insert content after the login form?
After signing up .......what next?
10 odpowiedzi
+ 1
Eg o submit return credentials ()
//JavaScript
credentials (){
//Get the credentials and display them as variables
Var credentials = input
document.write.(credentials);
+ 2
Thankyou very much 👍
+ 2
After 11 months of asking this question I just came back to see what i’ve learnt. It's really helpful and this question really helped me to learn a lot. So as 🥇👩💻 Kintu Michael Evans 🔥🔥( Active) had answered it is very true to state that we use the I submit attribute. What I learned is that you create a function in Javascript code whereby it can execute what would happen thank you everyone. Don't mind if it’s after a year that am reacting 😂.
+ 1
You can use the onsubmit attribute
+ 1
Do you mean you want to redirect the user to main page after signing in ?
+ 1
I mean that ; after the user fills the login page, he/she is directed to the content of the page . e.g after logging in a Facebook account you get the details/information
+ 1
Use JavaScript
+ 1
Meshack Kiprono thanks
+ 1
Meshack Kiprono since u can understand what I say well do this u can use JavaScript only or use a backend Facebook uses php
If you are to use js use an online database and check if the user credentials match the database stored somewhere
Js code
Credentials_match() {
// get the user input and and use a fetch listener
fetch (path-to-your-database/user-input)
if fetch is True {
Redirect to next page}
else {
Return error}
}
hope it helps
+ 1