libman Posted June 12, 2008 Share Posted June 12, 2008 Hi folks, I'm a newbie to php. Hopefully someone can help. Here is what I want to do: I want to allow people to download 4 word documents only after they check off a box after they have read certain conditions. Also, I want to make sure that the folder that holds those files are protected so that no one can access them except if he or she checks off the fact that they have read the condition. once the box is checked the person would be directed to the page where he or she can download the 4 word files. I suspect my needs are somewhat similar to the way that we have to check off the check box when we register at this forum. Hope this makes sense. Thanks, G.L. Link to comment https://forums.phpfreaks.com/topic/109989-making-someone-check-a-box-before-getting-a-dowload-of-4-word-documents/ Share on other sites More sharing options...
DarkWater Posted June 13, 2008 Share Posted June 13, 2008 if (!isset($_POST['confirm'])) { echo "Please check the box."; } Something like that. Link to comment https://forums.phpfreaks.com/topic/109989-making-someone-check-a-box-before-getting-a-dowload-of-4-word-documents/#findComment-564409 Share on other sites More sharing options...
Rayhan Muktader Posted June 13, 2008 Share Posted June 13, 2008 And look into .htaccess if you want to protect your word docs from direct access. Link to comment https://forums.phpfreaks.com/topic/109989-making-someone-check-a-box-before-getting-a-dowload-of-4-word-documents/#findComment-564475 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.