HOME       >>       Websites and Web Designing

How To Add Login Page To Html File.


fredted40x

Hi,

 

I have a .html file that inside uses xhtml 1.0 strict, it uses a external style sheet.

 

Is it possible to create a login and register page using php and another html or php that also uses the css style sheet?

E.G. the login and register forms should be in the

 

<div id="main">

login/register form here

</div>

 

code.

 

Is there a simple tutorial for this online that works?

 

Thanks


Pii

How about creating an input box in a form and action on submit call a php and save your info to MySQL database?

 

http://www.w3schools.com/

 

This should have some examples that you can look at.


FirefoxRocks

Here is an example of a basic login form in HTML, if that's what you're looking for:

<form action="login.php" method="POST"><fieldset><legend>Login</legend><p> Email address: <input type="text" name="email" /> </p><p> Password: <input type="password" name="password" /></p></fieldset></form>

Not sure what you are asking about the CSS style sheet, but if you need PHP code then feel free to ask further.


8ennett

There are some good examples of how php handles login forms and how to create user accounts in the programming -> php section of this forum, but you can't process login data using html. You could I suppose use a .htaccess and .htpassword file however php is definately more flexible and secure.



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.