ihatephp Posted July 7, 2008 Share Posted July 7, 2008 I am doing a survey. So , if the survey is not done,it will be shown as "click to do survey". After it is done,the user cannot click the link again to do the survey a second time. How should i go about doing this? Link to comment https://forums.phpfreaks.com/topic/113530-limited-clicks-on-a-url/ Share on other sites More sharing options...
nEJC Posted July 7, 2008 Share Posted July 7, 2008 If you have known users (they login with user/pass) you could set up a table with user_id, survey_id fields and insert record into it when (s)he was done with it - this way you check against the table and see if you should enable or disable survey. If users are unknown/anonymouse you would put that info into cookies (and hope they don't get erased or otherwise modified by user) Link to comment https://forums.phpfreaks.com/topic/113530-limited-clicks-on-a-url/#findComment-583346 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.