Posted by: what should i put here Nov 6 2006, 01:16 AM
well i need to know how to put a login form on my site, i havent put it on the internet yet, but with my html coding its exact like some sites are.
i can click the submit button and it goes straight to the new page, but i want people to use the login part so they enter username/password etc. and then press button, so if they dont enter anything and press enter it wont go, but a popup box will say: please enter your username and password... please help me
Posted by: Christian J Nov 6 2006, 07:20 AM
QUOTE(what should i put here @ Nov 6 2006, 07:16 AM)
well i need to know how to put a login form on my site
To password-protect a site with a login form, you can let the server-side program check the submitted password. The file on the server containing passwords should not be viewable by users. See the http://htmlhelp.com/faq/html/forms.html#form-howto for form basics.
If you instead of a form use HTTP authentication the browser will provide a login prompt. See also thehttp://htmlhelp.com/faq/html/publish.html#password.
QUOTE
if they dont enter anything and press enter it wont go, but a popup box will say: please enter your username and password... please help me
This can be done with javascript, but the actual PW-protection should not rely on that. See http://htmlhelp.com/faq/html/forms.html#required-fields