I need a module to let a visitor of my site to access exclusive content ONLY if he/she shares some pre-defined content and Clicks Like y my Facebook Page.
I must be done in PHP with MySQL and must include....
A MySQL table named "events" with the following fields:
id_event: autoincremental numeric - 2 digits
name_event: alfanumeric - 30 characters
message_to_share: open text
image_to_share: alfanumeric - 30 char (name of the image to be shared and located at /images)
url_success: alfanumeric - 200 char
url_fail: alfanumeric - 200 char
The PHP module must be able to receive a parameter with the id_event and allow the visitor to share the message and image matching the id_event in the table.
If the "Like" and the "Share" process were (both) successful, then the module must redirect the user to the url_success and if failed... to the url_fail
For testing please create 2 files...
[login to view URL] will say: "Sucess"
[login to view URL] will say: "Failure"