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
Need assistance in PHP-Exchange integration via Exchange Web Services The developer must have the following- 1) Experience with PHP web services using SOAP protocol 2) Und

Need a Expert Wordpress Programmer and Designer We are in search of an ongoing wordpress expert designer and programmer for ongoing tasks. For this project you will make an auth

We need help to develop Drag and Drop Mobile Website Builder I am in search of someone who can help me with a drag and drop mobile website builder that I am developing. I wan

We are in need Programming expert I want someone to write codes for an idea I have. To be honest I do not really trust the security of this site to disclose my idea without havi

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 an Ecommerce website like Groupon Job Description: We're seeking a Web Developer Your responsibilities- 1) Review business requirements 2) Perform a technical ana

WordPress theme bug fix We installed a bought WP theme It was working acceptable at the beginning Most probable for the reason that of WP upgrades or other plugin upgrades

Application layer: In the OSI model it's the topmost layer which enables the user to access the network. For network applications this layer provides user interface like remote lo

1. In the form of a table and sketches analyse the design solutions for 2 different buildings in terms of design theory and style, use, cost, build-ability and suitability, and bri

Website/CMS Completion (Detailed proposal & Timeline Required) IMPORTANT- Please evaluation ALL attachments. Comprise keyword and Detailed breakdown of tasks to be completed wit