#!/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 ##################################### #----------- define variables ---------- my $orgzn; # input from previous form my $orgname; # Greek organization name my $contfn; # contact first name my $contln; # contact last name my $cphone; # contact phone my $contem; # contact email my $outfile='../org.txt'; # file containing org info my @orglist=""; my $key; # ---- process input ----- $orgzn = param("orgnzn"); chomp $orgzn; ($orgname,$contfn,$contln,$cphone,$contem) = split (/:/, $orgzn); # ----- create editing form ------- $method = 'post'; $action = 'updateorg.cgi'; $encoding = 'application/x-www-form-urlencoded'; my $css = ''; print header(); print start_html(-title => $title, -head => $css, -class => 'oneColFixCtrHdr'); print '
'; print '
'; print p("Please edit information, then click the UPDATE button."); # ---- form ----- print startform($method,$action,$encoding); print < $orgname $contfn $contln $contph $contem     EOF print end_form; print '
'. ''. '
'; print end_html