Ask coding questions

← Back to all posts
1
Login To A New Webpage
NEILEVANS (0)

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.

Commentshotnewtop
1
abc3354 (92)

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

1
niorg2606 (41)

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 repl.it though.

1
NEILEVANS (0)

@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?

1
abc3354 (92)

@NEILEVANS It is not possible

You can do two prompts, or use this maybe
https://stackoverflow.com/questions/17994208/is-there-any-way-to-create-prompt-with-two-input-fields

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