PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Secure Log in Pages
Secure Log in Pages
Débuté par Phill Slusar, 01 oct. 2007 18:48 - 1 réponse
Posté le 01 octobre 2007 - 18:48
I'm looking at making a secure log in page on my webdev site, however I am unsure on how I would get it to read the database so when you type in the username and corresponding password it allows you access to enter.

I am using a hyper file file as my database.

Does anyone have any ideas?

Regards

Phill
Posté le 01 octobre 2007 - 19:22
Hello Phill

It looks like you are new to HF DB usage?

If it's the case, there a re many things to cover... But the first thing
should be to read the manual where many of these things are explained...
But here goes ONE of the MANY ways of doing it:

- define a use file in your db with user name, login, password, etc
(login shold be a unique key)
- on your page, define two fields, login and password or the appropriate
type and a button
- in the button code (server side), read the user file using a
hreadseek(FileName, LoginKeyName, LoginValue)... If found, compare the
password and either do a displaypage of the part of the site you want to
access, or a displaypage of an error page (or of the login page with an
error message displayed)... If not found, same thing than if password is
incorrect

in a nutshell, that's it...

best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com


Phill Slusar wrote:
I'm looking at making a secure log in page on my webdev site, however I am unsure on how I would get it to read the database so when you type in the username and corresponding password it allows you access to enter.

I am using a hyper file file as my database.

Does anyone have any ideas?

Regards

Phill