Jump to content

Two quick questions


L

Recommended Posts

Hey,

[Or at least I think the questions are quick] :P

 

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.