Hello all, i need help with php scripts
Anyway, here's the story:
i have several freebies download. i want the user chooses only 1 of them. when a user goes to the page for the first time, there'll be download links in the sidebar. after he has downloaded one, the download links will disappear, even if he has closed his browser and come back again.
i'm thinking about using cookies. i set cookies named "bob". if "bob" is detected, the href scripts will not be shown, if "bob" is not detected, the href scripts will be shown.
or maybe create 2 clone pages, one contains no download links, the other contains download links. so, if "bob" is detected, user will be redirected to page with no download links and vice-versa (don't think this will work because the user must visit the main page first then "bob" is set instead of otherwise, but all suggestions are welcomed)
the thing is i'm not php savvy, so please anyone, help me.
sorry if the thread is a little bit confusing
Thanks
Anyway, here's the story:
i have several freebies download. i want the user chooses only 1 of them. when a user goes to the page for the first time, there'll be download links in the sidebar. after he has downloaded one, the download links will disappear, even if he has closed his browser and come back again.
i'm thinking about using cookies. i set cookies named "bob". if "bob" is detected, the href scripts will not be shown, if "bob" is not detected, the href scripts will be shown.
or maybe create 2 clone pages, one contains no download links, the other contains download links. so, if "bob" is detected, user will be redirected to page with no download links and vice-versa (don't think this will work because the user must visit the main page first then "bob" is set instead of otherwise, but all suggestions are welcomed)
the thing is i'm not php savvy, so please anyone, help me.
sorry if the thread is a little bit confusing
Thanks