% %my $agentnum = $cgi->param('agentnum'); %$agentnum =~ /^(\d+)$/ or eidiot "illegal agentnum $agentnum"; %$agentnum = $1; %my $agent = qsearchs('agent', { 'agentnum' => $agentnum } ); % % <% include("/elements/header.html",'Generate registration codes for '. $agent->agent, menubar( 'Main Menu' => $p, )) %> % if ( $cgi->param('error') ) { Error: <% $cgi->param('error') %> % }