Home  |  Linux  | Mysql  | PHP  | XML
From:Gunnar Hjalmarsson Date:Tue Mar 18 13:24:41 2008
Subject:Re: DeletePage
Deepan - M.Sc(SE) - 03MW06 wrote:
>               I am having a submit button and upon clicking it i am
> asking the user for confimation [for this i have used javascript].
> When the user selects yes i should be able to call another subroutine.
> But i am going wrong somewhere.

<snip>

>     print <<HTML;
>     <form action=files.cgi method="POST">
>     <input type=hidden name=cmd value=delete>

Maybe you meant that to be

     <input type=hidden name=cmd value=true>

> sub deletePage {
> 

You need a content-type header here.

     print CGI::header();

>     print "File was deleted successfully!<br>";
> 
> }

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants