0

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..

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

5
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by diafol
0

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.

0

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

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.