Authenticate the name and password, PHP Web Programming

Keep a list of allowed reporters and their passwords in a database table Authentication.  Define and populate the table beforehand manually using the phpMyAdmin interface to MySQL (or a command line interface if you like.) You can assume the reporter name is to be the primary key for the table.  The authentication information should have nothing to do with your UCID or MySQL passwords and name.  The table looks as follows with the appropriate data types for the columns.  The contents are NOT encrypted.

Authentication (for incident reports)

reporter_name

reporter_password

joe456

zebra

james777

checker

The PHP script should test the reporter name and password submitted from the form using a simple PHP or-die construction that queries the database for a matching reporter and password.  An SQL select command can be used but the returned data should not be accessed.  Just look up in the IT202 manual or on the online PHP manual how to tell if a select returned any rows.  If the select is defined appropriately, that will tell you if the reporter name and password were valid.   The password should not be encrypted by the browser, the script or in the database.

Caveat:

PHP:    When testing strings for equality in PHP, do not use = where you should use == (a pair of equal signs).  The PHP symbol = is for assignment statements; it is not used to compare strings; use the == equality operator for string comparison.

SQL:   When testing strings for equality in SQL, use = symbol, not the == used in PHP

Posted Date: 3/29/2013 6:01:31 AM | Location : United States







Related Discussions:- Authenticate the name and password, Assignment Help, Ask Question on Authenticate the name and password, Get Answer, Expert's Help, Authenticate the name and password Discussions

Write discussion on Authenticate the name and password
Your posts are moderated
Related Questions
We need a Rent Manager setting application I am looking for someone who can do rent manager setting please don't waste my time I have rent manager buy from the rentmanager.com t

Connect shopping carts to software We want to connect our two websites shopping carts with the software of Shipwire (company distributing our products once they are sold online)

Use a checkbox element (not a radio button/s). Refer to IT 202 manual but look up on the Internet how to define this in HTML and then how it can then be tested to guide decision-m

We are looking for Expert ColdFusion Programmer - must be in Northern VA/DC area We are in want of an expert ColdFusion developer who can help us with a project that involves ec

Need help in Google map interface Summary- Highpoint streets on Google maps using colours that depend on the score those streets receive in my data Details: I want to map fiv

We want a long term expert Developer We want a long term expert Developer having expertise on the following for our ongoing (offline as well as online) projects. WordPress, Joom

Define and implement a software system that lets an authorized reporter enters information about a (simulated) computer system services incident (kind of incident, date, time of da

Need Wordpress theme Developer I want Wordpress developer Who can convert my Html, Javascript Site In to Wordpress Theme. Its Urgent Work And want it as soon as possible. This i

We need help to create Ecommerce and Software App Development For Yahoo / Shopify I am in search of a developer or company to build an App that can work with Yahoo Stores and Sh

We need a Web Developer for Equity Company Gameplan is in search of a developer to join our NYC/NJ-based development team. You will be part of a slight startup development team