Hi Team,
I want the html code with which i can create a log in page, and when user id and password is put it should open a small page which is basically created in html.

I have used the below html tag to create an user nad password column

<html>
<body style="background-color:#5A6673">
                 <h1 style="text-align:center"><b>My Site</b></h1>


<frameset cols="40%,60%">

<form action="">
               Username: <input type="text" name="user" /><br />
               

Password: <input type="password" name="password" />
               
<input type="submit" value="Submit" />
</form>

</body>
</html>

Kindly do advice..

You need to learn PHP programming and MySQL databases to do this properly. It is not a simple fix. You then need to secure each and every page that is for logged in people to exclude those who are not authorised. The action part of the form has to call a script (program) that you write to process the data input.

Alternatively, you can use the .htaccess file to secure a folder, but be aware that you might just lock yourself out as well.

create or replace procedure CheckLogin(u_name in varchar2, u_pwd in varchar2,is_admin in number) is
uname varchar2(30);
upwd varchar2(30);
begin
if (is_admin = 0) then
select user_name,password into uname,upwd from cms_users_login
where user_name = u_name and password = u_pwd;
else
select admin_name,password into uname,upwd from cms_admin_login
where admin_name = u_name and password = u_pwd;
end if;
end CheckLogin;
==================
personal trainer certification
business intelligence consultants

Hi Team,
I want the html code with which i can create a log in page, and when user id and password is put it should open a small page which is basically created in html.

I have used the below html tag to create an user nad password column

<html>
<body style="background-color:#5A6673">
                 <h1 style="text-align:center"><b>My Site</b></h1>


<frameset cols="40%,60%">

<form action="">
               Username: <input type="text" name="user" /><br />
               

Password: <input type="password" name="password" />
               
<input type="submit" value="Submit" />
</form>

</body>
</html>

Kindly do advice..

Create that small page and give URI of that page as value of action attribute of form tag e.g. <form action="small-page.html">. opening poup is not recommended.

Member Avatar for diafol

YUK! Framesets? This is 2010.

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.