L Posted December 14, 2007 Share Posted December 14, 2007 Hey, [Or at least I think the questions are quick] Question 1: How can I make it so when you click a button a file starts downloading(so people can't see the link)[File chosen by $_GET values] Basicaly if isset($_post['dl']) "download file" Question 2: How can I make it so when people donate(via paypal) something is updated in my database saying they donated(giving them special privileges)? Thanks edited Link to comment https://forums.phpfreaks.com/topic/81618-two-quick-questions/ Share on other sites More sharing options...
paul2463 Posted December 14, 2007 Share Posted December 14, 2007 in answer to your first one that is easy, write a function to do the download for you instead of it being a direct link and you have the button call the function, so there is nothing to show what it is doing, I have a simple javascript function on one of my sites that is called by a button function checkPasswd() { var password = ''; password=prompt('Please enter your password:'); if (password != null) { location.href= "checkname.php?group=beavers&reply=" + password; } } I realise this is just a simple check function but it does re-direct to another page and the button does not show any information about the page as it is calling a function not a link. with regard to your second problem I am afraid i cannot help with that Link to comment https://forums.phpfreaks.com/topic/81618-two-quick-questions/#findComment-414743 Share on other sites More sharing options...
Daniel0 Posted December 14, 2007 Share Posted December 14, 2007 Q1: Try this: http://www.phpfreaks.com/forums/index.php/topic,95433.0.html Q2: I would imagine that PayPal has some sort of API you can use to check who that have donated. Try to check out their developer central. Link to comment https://forums.phpfreaks.com/topic/81618-two-quick-questions/#findComment-414771 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.