Connecting Tech Pros Worldwide Help | Site Map

Re: HELP delete script not working

Gandalf
Guest
 
Posts: n/a
#1: Aug 17 '08
try this:

foreach(glob('../galleri/galleri/*', GLOB_ONLYDIR) as $key=$dirname)
{
$table.=($count%1==0)?"</tr>\n<tr>\n":"";
$table.="<td>".basename($dirname)."</td><td><input type='checkbox'
name ='deldir[$key]' value='$dirname'></td>\n";
$count++;
}

and if it wont work try :
print_r($_POST);

to check what is wrong
Effix
Guest
 
Posts: n/a
#2: Aug 17 '08

re: Re: HELP delete script not working


On 17 Aug., 04:43, Gandalf <goldn...@gmail.comwrote:
Quote:
try this:
>
foreach(glob('../galleri/galleri/*', GLOB_ONLYDIR) as $key=$dirname)
{
$table.=($count%1==0)?"</tr>\n<tr>\n":"";
$table.="<td>".basename($dirname)."</td><td><input type='checkbox'
name ='deldir[$key]' value='$dirname'></td>\n";
$count++;
>
}
>
and if it wont work try :
print_r($_POST);
>
to check what is wrong
Thank you for your help :) I ended up with re writing it from scratch
but now it work like a charm :) still not 100% certain of what i did
wrong but nevermind now that it works :)
Thank you for your time Gandalf I appreciate it.
-Effix
Closed Thread