Re: DeletePage

2008-03-18 Thread Gunnar Hjalmarsson
< Maybe you meant that to be sub deletePage { You need a content-type header here. print CGI::header(); print "File was deleted successfully!"; } -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

DeletePage

2008-03-18 Thread Deepan - M.Sc(SE) - 03MW06
lp me to solve this. Thanks! #!/usr/bin/perl -w use strict; use CGI; &main(); exit(0); sub main { my $cmd = CGI::param('cmd'); &mainPage() if($cmd eq ""); &deletePage() if($cmd eq "true"); } sub mainPage { print "Content-type: te