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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.