Simple PHP page

  • Status: Closed
  • Prize: $20
  • Entries Received: 16
  • Winner: RajendraJain

Contest Brief

I need a simple php script that will do the following.

1. User clicks on "Access my account" button on a simple white page (no design needed)
2. once you click on the button, a simple txt input field is displayed (previously hidden) next to the login field that asks user for company name
3. user inputs the company name and hits enter (or clicks on login)
4. The script will do a DB lookup to find the URL associated to the company name provided by the user and automatically redirects the user to that URL

Example:
I click on Access my account button
type in google & hit enter (or click on sign in)
The script lookups google in the DB, find the URL from the DB that is associated with Google (http://www.google.com)
I will be redirected to the http://www.google.com

DB assumptions:
MySQL or MariaDB
Use a DB connection file instead of including the DB connection in the main file
Company Table includes company ID, company name, URL

Input validation:
convert the text from the input field to all uppercase to simply find a match (example: Coke=coke or COke)

if no match is available, do not redirect user and display " The information you provided doesn't match our records"

Recommended Skills

Top entries from this contest

View More Entries

Public Clarification Board

  • mindlogicsmdu
    mindlogicsmdu
    • 5 years ago

    please check my entry #18

    • 5 years ago
  • nomanjaved2011
    nomanjaved2011
    • 5 years ago

    Are you still accepting the entries? I may try on your request.

    • 5 years ago
  • ScottContina
    ScottContina
    • 5 years ago

    My entry is #2 . I have completed it and submitted the video of it in action.

    • 5 years ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!