Defining a "GOTO" function with variables

C

Carl Vannest

How do I code the HTML to define a GOTO function to have variables that UID
must = "blahblah" and "PWD" must = "BLAHBLAH".

This is what I am doing. If you will look at
http://www.dvsconsultingservices.com then click on the "Employee Page" you
will see a screen for Username and Password. Well in the Code those are
defined as "UID" for User Name and "PWD" for Password The "LOGON" button is
a "GOTO" for the page that I want it to point at.
http://www.dvsconsultingservices.com/employee2.htm For some reason, I can't
figure out what to make the code say to have the variable UID and PWD be
equal to something so a user would have to put a Username and Password in
there in order for the GOTO function to work correctly. If anyone can take
a look at it and try to help me out I would greatly appreciate it. I don't
mind reading the posted replies on the board, but it's easier to get them in
e-mail.

Thanks again

--


Carl L Vannest
Webmaster
DVS Consulting Services
(e-mail address removed)
 
S

Steve Easton

Your site is hosted on an Apache server running UNIX,
so what you want to do can be done using .htaccess and .htpasswd files.

..htaccess lives in the folder you want protected, and .htpasswd needs
to be in a folder "above" the root of your web.
If your site comes with the webmasters CPanel, you can do it via the CPanel.

Open CPanel, select Access Menu, select Web Protect, select
the folder you want password protected and then assign a username and
password.

I that's not an option, do a Google search for .htpasswd

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top