Ask coding questions

← Back to all posts
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.
https://storage.googleapis.com/replit/images/1558895115117_204bcff4bc681dff69e1d1f2ec84cb6d.pn
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.

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

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?

https://storage.googleapis.com/replit/images/1559095240034_a3117acca03f7bfc6dd106c528d6edd8.pn

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