Skip to content
Sign upLog in
← Back to Community

Login To A New Webpage

Profile icon
NEILEVANS

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.

Cannot infer image mime type

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.

Voters
Profile icon
VYPERGAMER
Profile icon
NEILEVANS
Comments
hotnewtop
Profile icon
abc3354

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

Profile icon
SixBeeps

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.

Profile icon
NEILEVANS

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

Cannot infer image mime type

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?

Profile icon
abc3354

@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

Profile icon
SixBeeps

@NEILEVANS
https://stackoverflow.com/a/20712347