Edit record for Pages $row[page_begin] - $row[page_end]
\n"; } print "

Enter a new record for this section below

\n"; print " Adding Information for Section $section

You are entering data for Section $section

Title
Composer
Genre
Date
Translation
Comments
Starting Page
Ending Page

\n"; } function process_form() { global $section, $title, $composer, $genre, $date, $translation, $comments, $page_begin, $page_end, $section, $filename, $complete,$link; $insert = "insert into metadata (title,composer,genre,date,translation,comments,page_begin,page_end,section) values ('$title','$composer','$genre','$date','$translation','$comments','$page_begin','$page_end','$section')"; if ($title =="") {$error[title] = "Title field left blank";} else { $ok[title] = $title;} if ($translation =="") {$error[translation] = "Translation field is blank. Please go back and type in a translation";} else { $ok[translation] = $translation ;} if ($error) { print "Whoops!

Some required information is incomplete or needs revision. Please go back and correct the following problems
\n"; } # if ($error) { print "\n"; } else { $result = pg_Exec ($link, "insert into metadata (title,composer,genre,date,translation,comments,page_begin,page_end,section) values ('$title','$composer','$genre','$date','$translation','$comments','$page_begin','$page_end','$filename')"); #if ($complete == 'yes') #{ #$complete = pg_Exec ($link, "update sections set complete='yes' where filename = '$filename'"); #print "Data added and section marked as completed

Open a new Reel/Section\n"; #} #else { $reel = substr($filename, 0, 1); print "Data Added