Authenticate the name and password, PHP Web Programming

Assignment Help:

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


Related Discussions:- Authenticate the name and password

Need help in wordpress website has a custom post type, Our WordPress websit...

Our WordPress website has a custom post type called 'Artists'. Users can upload numerous images to their listing when they join the website as well as they have dashboard access so

Need a expert for programming a bandcamp for writers, Need a expert for Pro...

Need a expert for Programming A Bandcamp(.com) for Writers and Zine Lovers I want someone who knows how to program a website like Bandcamp where users can have there own place t

Html password field, How do you define an HTML password field? Use type ...

How do you define an HTML password field? Use type = password for the form element. This provides a minimal level of visual privacy but the text is submitted in plain text.

We are seeking a custom squarespace website developer, Custom Squarespace W...

Custom Squarespace Website- Web Developer Needed We are seeking a Web Developer. We want our custom website design cut and coded into Squarespace 6. The site will comprise anima

We are looking for a web developer to edit website and apps, We are looking...

We are looking for a Web Developer to edit website and apps Ok as well as the features what apps and site must have now is (1. Voice post 2. 3d blog 3. All members will have poi

Create the website home page, For storing pages now that a site structure i...

For storing pages now that a site structure is set up & assets for the Compass site, you'll develop the first page-a home page for the site. As you develop this page, you'll insert

Explain best user interface design guidelines, Question: The best user ...

Question: The best user interface design guidelines are guidelines that given high level and widely applicable principles. A set of such guidelines is as follows: (i) Know

Insert images in site, You will study two ways to add images in Dreamweaver...

You will study two ways to add images in Dreamweaver by using Dreamweaver's main menu and by using the Objects panel. 1. Click anywhere within the logo layout cell (the topmost

A php website developer required for web project, A php Website developer r...

A php Website developer required for web project Need a website developer who has experienced in website development using php AWS server knowledge is plus. Desired Skills

We are in need programming expert, We are in need Programming expert I w...

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

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd