473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Login Credential (Oracle9i Form Developer)

meLady
27
Hello,

I have a table which called users and it has two fields username and password.

Also, I have a form that has a log in text items and they are:
username.txt and password.txt. + okay button

So, I would like to know how the code goes for this type of idea. I want the user to insert his/her username and password in the login form and then when pressing the okay button, the system will check and varify the username and password in the users table.

as usual if it wrong ... the error message will be displayed and if it right the next form will be opened ...

I will be more delighted if you could help me in providing the right solutions for my queries.
Apr 15 '07 #1
3 2023
meLady
27
any reply to my queries?????
Apr 17 '07 #2
Hi,

Perform the following steps

on button pressed trigger write the following code

Expand|Select|Wrap|Line Numbers
  1.  declare 
  2. v varchar2(1);
  3. begin
  4. select 'X' into v from table_name where username = :block2.username
  5. and password = :block2.password;
  6. if v='X' then
  7. call_form('form_name');
  8. else
  9. message('Please enter username and password again');
  10. :block2.password := null;
  11. :block2.username := null;
  12. end if;
  13. end;
  14.  
  15.  
Hopw this helps !!

any reply to my queries?????
Apr 18 '07 #3
meLady
27
Hi,

Perform the following steps

on button pressed trigger write the following code

declare
v varchar2(1);
begin
select 'X' into v from table_name where username = :block2.username
and password = :block2.password;
if v='X' then
call_form('form_name');
else
message('Please enter username and password again');
:block2.password := null;
:block2.username := null;
end if;
end;



Hopw this helps !!


Hello anuj13singhal,

Thanks a lot for the steps (^_^) and I will try ... sorry for not replying to your reply because of exam semester ... Again thanks a lot and I will surely inform you about the steps that you provided me.
Apr 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Nathan Sokalski | last post by:
When I attempt to run a form created with Oracle9i Forms Builder I receive a dialog box asking for the following info: User Name: Password: Database: I obviously know my User Name and...
3
by: JIM.H. | last post by:
Hello, I need to create a login page in my asp.net application. UserId and password should be active directory userid and password. How can I do that? Thanks, Jim,
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
0
by: Amit Saxena | last post by:
Hi, i am trying to use Login control to check the credential of the user. i want to validate credential against active directory in the organization. i followed the steps suggested as in...
0
by: msnews.microsoft.com | last post by:
I have been raking my brains on why this does not work. I get back the same login screen again instead of the home page redirection which should occur after a successful login: 'create a cookie...
3
by: gold casper | last post by:
Hi I'm working in oracle9i form developer and report developer I'm doing school attendance system to take the attendance for students but I don't know how many tables I need and how to make all...
0
by: bprasanth | last post by:
How can I access the one *.fmx (i.e Bankmain master form file) to another *.fmx(*.Bank_Transactions form) without specifying the full path of the form for example D:\Banking\BANKING.fmx . If any...
5
by: rockdale | last post by:
Hi, all: I have a website with its own login page. Now one of my clients want their employees log into my website from their website. They want to have their login page (look and feel are...
0
by: DanWeaver | last post by:
Hi, Any pointers much appreciated- I just don't know how to progress from here. Using MS SQL server on a shared host (www.joglab.com shows the problem) I am having a problem with logins-...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.