in reply to Re: Re: Allow User to Select Which Files to Delete
in thread Allow User to Select Which Files to Delete
to put you in the right place. Then you can usechdir("/Library/WebServer/Documents/userpages/$drt/");
to get the files. remember to do this both in the deletion and the selection bitglob("*.*");
Alternitivly, get the length of /Library/WebServer/Documents/userpages/$drt/ and in the display section chop it off the front of the string
Usernames aren't a great idea to pass around (if people don't know what a vaild user name is, then thats another step they need to take in breaking your security), although I'm not sure what another solution is.foreach (@files) { my $choppedstring=$_; substr($choppedstring,0,$length_of_dir)=""; print "<br> Delete this File: $choppedstring <INPUT TYPE=\"checkbox\" +NAME=\"files\" VALUE=\"$_\">\n"; }
|
|---|