Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: gbl on January 03, 2004, 02:12:29 PM

Title: Dev: Webpanel & Submit Button
Post by: gbl on January 03, 2004, 02:12:29 PM
I'm trying to make a WebPanel with a Submit Button. The Panel is written in PERL. Clicking on the Button I get following error: The requested URL /server-manager//cgi-bin/135248652 was not found on this server.

Relevant Code Segments ...

Code: [Select]
my $q = new CGI;

if (! grep (/^state$/, $q->param))
{
    showInitial ($q, '');
}
elsif ($q->param ('state') eq "save")
{
    doSave ($q);
}
else
{
    esmith::cgi::genStateError ($q, \%conf);
}

exit (0);


#------------------------------------------------------------
# subroutine to display initial form
#------------------------------------------------------------

sub showInitial ($$)
{
    my ($q, $msg) = @_;

   
    print $q->p (esmith::cgi::genButtonRow ($q, $q->submit (-name=>'action', -value=>'Apply')));
    print $q->hidden (-name=>'state', -override>=1, -default=>'save');

    print $q->endform;
   
#    esmith::cgi::genFooter ($q);

    return;
}


I know that is no Developer Board (maybe it can be opened?).

sincerly
Guenter

[%sig%]