Hi team,

I have a index.html file and a login php plugins(Click Here

But am not sure how to include it in Index.html script.

May the question is very silly. But,I just started learning about web development. I know the basics but practical wise no experience.

Please advice the steps.

Thanks in advance!!

Recommended Answers

All 7 Replies

Hi :)

I don't know if exactly that you're waiting for...

I suggest you to create an index.php

<?php

 // Insert your session (session must be first)
 session_start();

 // Insert your include file
 include("./yourFile.php");

...

?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    ...
</head>
<body>
    ...
</body>

<!-- Insert your jquery code here -->

</html>

Hope help you :/

Member Avatar for LastMitch

@sidd

May the question is very silly. But,I just started learning about web development. I know the basics but practical wise no experience.

It's pretty simple. Is that index.html is your home page or you want that index.html to be the file that store that login?

Usually you want to put those codes in a folder that can link it to the index.html.

Bu my question is what is the index.html and did you create DB?

commented: To Rectify what some retard did to LastMitch +0

It's pretty simple. Is that index.html is your home page or you want that index.html to be the file that store that login?

I advise you to create an index.php for your login page not an html file
(like i explained)

Usually you want to put those codes in a folder that can link it to the index.html.

use include('../yourcodeFile.php")

did you create DB?

Yes it's necessary because you need to check informations.
For example:

In your form:
<input type="text" name="log" value="nickname">
<input type="password" name="pass" value="mypassword">

In your database:
nickname must be equal to mypassword

hope help u :/

Member Avatar for LastMitch

@mano7859

Those questions are towards sidd not you.

I know how to create a login.

commented: To Rectify what some retard did to LastMitch +0

Lol i'm sorry I'm tired and confused :)

Member Avatar for LastMitch

@mano7859

It's Alright! I get it. =)

commented: To Rectify what some retard did to LastMitch +0

Hi Mitch and Mano,
Thanks for your advice!!

Index.html page is my home page and i want to call the php file from there.
As suggested, i have changed it to index.php.
But the login box that i am using is throwing hell lot of errors, rest of the page is fine.
I will try to look into the errors, If cant resolve it, will come back.

Thanks again!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.