create a web page that asks for user name and password.

hello; I need to create a web page that validates a user name and password.  The first page should have two text boxes: one for the user name and one for the password and a button that says login.  Once the button is clicked the user name and password should be passed to a CGI script.  The script will check to see if the user name and password is located in a file.  If the user name and password are both located in a file then a page should display "Successful login".  If either the user name or password is wrong then the page should display "Unsuccessful login" and a link back to the login page. Could you help me?. Thank you.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

why use a CGI?
each reliable web server has this functionality build-in using simple .htaccess files

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Artysystem administratorCommented:
1) Select programming language for your CGI script
2) In your form use
<FORM action="your_script_name" method="post">
Username: <input type=text name=user>
Password: <input type=password name=pass>
<INPUT type="submit" value="Send">
read more for HTML form layout
2) In your script you will get 'user' and 'pass' variables. How? It depends of your programming language.
then check them against external source and do what you want
Dushan De SilvaTechnology ArchitectCommented:
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Artysystem administratorCommented:
Venabili, Dushan911 also give good suggestion. And very good advice to search knowledge base before asking a question :-)
If marquinez uses Perl, these PAQs may be usefull.
Since we don't know what marquinez thinks, Dushan911 should also be included to split poiunts.
He made an internal search and posted two links without really explaining what is on them and so on.. It won't take too much tro post some explanations as well, will it?
Dushan De SilvaTechnology ArchitectCommented:
Is illegal to post internal EE PAQ links while answering questions? , which are perfectly matching quetioner's requirement

BR Dushan
>> Is illegal to post internal EE PAQ links while answering questions? , which are perfectly matching quetioner's requirement

No :) But basically when posting ANY link, it is better to post some information what is on it... It will make the question more readable. That's all

Up to the Mods how to close
Dushan De SilvaTechnology ArchitectCommented:
I agreee. Thanks!

BR Dushan
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.