Can I have a code run after a form in html? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 1

Can I have a code run after a form in html?

I'm developing a project, and I have it start with a username and password screen. However, any code I put after this appears at the same time as the form. Is there a way for me to have the form run, and, upon completion, another code begins? For example: Enter username and password: username, password. When that's finished I want it to be: Please enter xyz: blah,blah,blah However, I don't want this done using alert in Javascript, as I have styled my form in CSS. https://code.sololearn.com/Wgjsocnmjisg/?ref=app

11th Apr 2021, 9:54 PM
zxtychj
zxtychj - avatar
4 Respostas
+ 1
Yes, that's called "static." One solution I've seen is done with forms that go to a new webpage. Still, I suggest calling out your professor for giving assignments like plaintext passwords!
11th Apr 2021, 10:19 PM
Phil Andy Graves
Phil Andy Graves - avatar
+ 1
You can save the code in SoloLearn and share the link to the saved code bit in the thread's Description. It is hard to tell what the issue is without first viewing the code. https://www.sololearn.com/post/75089/?ref=app
12th Apr 2021, 3:42 AM
Ipang
- 1
https://code.sololearn.com/WUO7b3ws2yBB/?ref=app This is what you need...ūü§Ē
11th Jun 2022, 12:27 PM
Sachin
Sachin - avatar
- 1
https://code.sololearn.com/WUO7b3ws2yBB/?ref=app This is what you need...ūü§Ē
11th Jun 2022, 12:27 PM
Sachin
Sachin - avatar