Maybe I'm just confused, but I think you're basically there. Just move your form to another display function..

#!/usr/bin/perl use CGI; print $q->header(); %formvals = $q->Vars(); my $repaccess = $formvals{cvsrep}; my $repfunction = $formvals{function}; if($repfunction =~ /Register_User/) {<br> print $logo; &displayreg($repaccess); } elsif ($repfunction =~ /Delete_User/) { print $logo; &displaydel($repaccess); } elsif ($repfunction =~ /Show_All_Users/) { printf $logo; &showallusers($repaccess); } elsif ($repfunction =~ /Reset_Password/) { printf $logo; &displayreset($repaccess); } else { displayform(); } sub displayform{ printf "<h1>CVS User Management</h1><br>"; printf "<P>"; printf "<b>Please select which cvs repository your would like to adm +inister.</b><br><br>"; foreach my $rep (<@reps>) { printf $q->radio_group (-name => 'cvsrep',<nt> -values => [$rep], -linebreak => 'true'); } printf "<br>"; printf "<b>Please select the function to use. <br></b><br>"; my @functions = ('Register_User','Delete_User','Show_All_Users','Res +et_Password'); foreach my $func (<@functions>) { printf $q->checkbox_group (-name => 'function',<br> -values => [$func], -linebreak <br>=> 'true', -defaults => 'other'); } print "<br>"; print $q->reset; print $q->submit ('Submit', 'Submit'); print $q->endform; } sub displayreg { ... }

cheers,

J


In reply to Re: CGI form on click new window display by edoc
in thread CGI form on click new window display by minixman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.