Jump to content
xisto Community
Sign in to follow this  
fredted40x

How To Add Login Page To Html File.

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.