From a facebook.com page, visitors can click upon a link. This leads to www.domain.com/members
IF the person has not come from a facebook.com page, they will, instead, be directed to www.domain.com/nonmember where there will be an error message saying “You must be a Facebook fan to access the offers”
- When arriving at www.domain.com/members location the user has the following options:
1) read how this site works
2) get a membership number
3) view offers
4) reminder of membership number
Each of these must lead to a separate page. These pages must be within the ‘members’ area and therefore ONLY visible IF the visitor came from the facebook.com page. Otherwise the pages must divert to the “nonmember” message.
options 1) and 3) would lead to simple (but protected) text pages.
*** Option 2 would request the following..
- email address (to send your code to)
- repeat email address
- first name
- surname
- gender (male or female)
- location
- set your own security question (eh “name of favourite pet”)
- answer to the question
- mobile phone number (to send your code to)
All of these are compulsory fields and should be checked / validated.
Any “+” in front of the mobile number should be stripped off.
If the mobile phone number then does not begin with “07″ or “44″ an error message should be generated.
If the mobile phone number begins with “0″, this should be replaced with “44″
If the mobile phone number does not then fir the format “447xxxxxxxxx” (12 digits) an error message should be generated.
There should also be a CAPTCHA code to precent robot entries.
Upon clicking “send” an email should be sent to the address containing a randomly generated 16 digit membership number of the format xxxx-xxxx-xxxx-xxxx
All of the above data (including the membership number) should be stored in a mySQL database.
NB: if the email address is ALREADY stored in the database, an error message to this effect should be returned as opposed to creating a new membership.
*** Option 4 would simply request an email address:
- if this is found in the database, an email is sent containing the membership number
- if it is not found, an error message is returned.
—————–
A further directory (open to all) – www.domain.com/vendor would
- request the membership number using four horizontal boxes in the format xxxx-xxxx-xxxx-xxxx
- request a CAPTCHA code.
- “your vendor name”
If either of the first two were incorrect, an error message would be given.
Otherwise the web page will display “The member is valid. [His/her] name is [firstname] [surname]“.
The member number / name and vendor name would be written to a .txt log file along with the date and time.
—————–
A password protected www.domain.com/admin/ panel would allow and admin to search by email address and to edit any of the information
——————
A final script would request a mobile number. If found in the database, it would return “present”, if not to would return “absent” (no captcha code should be used here).
—————
You will be given fill ftp access to the server and its ‘control panel’ to install and text the scripts.
** Whilst I am not expecting a dazzling web design with fancy graphics, the pages should be presentable and pleasing on the eye.