conozco345
07-26-2002, 03:52 PM
Ok, I created a form and when it submits, it goes to my file info.php... when it goes there I do not want a loop, I want to have an "if" statement for all the checkboxes in the previous html document, but for example, when I try
if (isset($chkbx1))
{
$filedata = implode("",file("searchtest.php"));
$zipfile -> add_file($filedata, "/dir/file4.txt");
}
I recieve a parse error. The reason I do not want a loop is because I can not replace the "/dir/file4.txt" with an array such as $download[$i] and have an i++ in the loop, and have the variables set as something like $download1 = "/dir/file1.txt", $download2 = "/dir/file2.txt". I don't even think that it is possible but if it is could someone help me out with it?
if (isset($chkbx1))
{
$filedata = implode("",file("searchtest.php"));
$zipfile -> add_file($filedata, "/dir/file4.txt");
}
I recieve a parse error. The reason I do not want a loop is because I can not replace the "/dir/file4.txt" with an array such as $download[$i] and have an i++ in the loop, and have the variables set as something like $download1 = "/dir/file1.txt", $download2 = "/dir/file2.txt". I don't even think that it is possible but if it is could someone help me out with it?