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
An open system is a model which allows any two distinct systems to communicate regardless of their underlying architecture. The reason of the OSI model is to open communication amo

Support With Custom Wordpress Theme I am seeking someone to help me customize a WordPress theme. I will design the theme and I am looking for someone to code it for me. Desir

I am in search of Wufoo API Expert I am seeking someone who is skilled with Wufoo's form API. The task needs submitting wufoo form xml to another site. Please offer relevant exp

We are required a Wordpress developer who can install the Flix theme for Buddypress. The project will include setting up categories, any plug-in that are required, and style the th

Convert a non-responsive wordpress theme to responsive Twitter Bootstrap3 My website is a none responsive wordpress theme. I want to translate this theme into responsive theme u

Website creation - similar to seedrs.com crowd funding Looking to receive quotes as well as approximate time frame for the development of a website similar to Seedrs.com. Ope

Need help for Website update and enhancement using PHP and Mysql We're seeking for a long-term relationship with a web programmer/designer who is able to handle 5 to 10 hours of

We need a developer for web app We are looking for a full stack developer or a team for building our web application. I want to import CSV files as well as output Excel spreadsh

Project Description: Want an API expert to aid in application development in regards to API extraction, and injection into other sites, as the main site is updated. Do not bid i

I need a PHP Pregramer In search of a PHP developer to program my website header I need to replace the buttons that came with the template and to add dropdown attached an JP