#!/usr/bin/perl -w use CGI qw(:standard -debug); use CGI::Pretty ":standard"; use CGI::Carp qw(fatalsToBrowser); ########### Credits ################# # Script written by R. Todd Vandenbark ##################################### # -------------------------------------- # Takes input from findstaff.cgi, # creates pre-populated form for # editing staff system user's info. # Calls updatestaff.cgi to insert # info into staff.txt file. # -------------------------------------- #---------- define variables ------------ # == form input variables == my ($staff,$bsuname,$username,$passwd); my $css = ''; # == script variables == my $inputfile = "../../staff.txt"; my $tempfile = "../tempfile.txt"; my @inarray=(); # array to read in file # ---- end define variables ------------- # ---- process input ----- $staff = param("staff"); chomp $staff; ($bsuname,$username,$passwd) = split (/:/, $staff); if (!$staff) { # if no selection made, generate error msg $title = 'oops...'; print header(); print start_html(-title => $title, -head => $css, -class => 'oneColFixCtrHdr'); print '