Ask coding questions

← Back to all posts
Login To A New Webpage

I ripped my current code from W3Schools just as a test. However, my question specifically is how can I make something like what is shown in the picture below as a login.
It has a required username and password (which I obviously won't give out for obvious reasons). I'm trying to create something like it.

abc3354 (228)

Hi !
You cannot do that with an html repl
You need a server side like php, node.js, falsk, ...
You need to learn how to create a webserver and do auth with it

SixBeeps (5221)

You have the form all there; you just need password encryption (SHA256) and a server to store all of the user entries. That's not so easy to do on a site like though.


@niorg2606 Hi again, saw the reply. Thanks for the input, question for you and @abc3354 aswell, is it possible just in plain html to get the 2 inputs in the same prompt with anything like JS or something like in the picture below?

If not possible, then could you possibly point me in the right direction to get to this or something considerably close to it using prompts?

abc3354 (228)

@NEILEVANS It is not possible

You can do two prompts, or use this maybe

But actually these are cancellable and do not provide any real security

You can maybe use js to give access to a page after authentification

But keep in mind that all your pages will be available with the repl and the url