Hi,

I'm currently learning PHP, and I'd like to put it into practice to help me learn. Now, I've got a vague idea of how to make a download script so that if the value of a certain variable is '1', the first download is selected, if it's '2', the second is selected, and so on... But, all the time, the download source's URI is not revealed.

As I was saying, I have a vague idea of how to do it - but I know it wrong. I was thinking of something like this:
PHP Code:
<?php

$dl 
'0';

switch(
$dl){
    case 
'1':
        echo 
'data/download1.zip';
    case 
'2':
        echo 
'data/download2.zip';
}

?&
gt
I can already see most of you cringing after that! Ok, so it's pretty obvious this doesn't work. So, could someone please tell me what I can do to make it work?

Thanks in advance,

-jk