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
-
RajendraJain India
-
cepi017 Indonesia
-
adipr Indonesia
-
kyosra Tunisia
-
tipudany Bangladesh
-
carlojimenez Philippines
-
rajatayyab5127 Pakistan
-
anwarsolangi Pakistan
-
amigophp Russian Federation
-
tipudany Bangladesh
-
genbuinebyte United States
-
ScottContina United States
-
graAndWebPro Bangladesh
Public Clarification Board
How to get started with contests
-
Post Your Contest Quick and easy
-
Get Tons of Entries From around the world
-
Award the best entry Download the files - Easy!