here is an example solution, where I use the function multiple times with IF functions:
PHP Code:
$option1 = $_get['option1']; $option2 = $_get['option2']; $option3 = $_get['option4']; if($option1 == yes) { create_zip('file1.php,'my-archive.zip'); } if($option2 == yes) { create_zip('file2.php','my-archive.zip'); } if($option3 == yes) {create_zip('file3.php','my-archive.zip'); }
You must include the function before this, I did not want to include that. You also might want to capitalize the 'get' part so it says 'GET', I am not sure if that matters.