By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,304 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,304 IT Pros & Developers. It's quick & easy.

Re: HELP delete script not working

P: n/a
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
Aug 17 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 17 Aug., 04:43, Gandalf <goldn...@gmail.comwrote:
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
Aug 17 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.