$pathFile = 'General/gen_Includes.php'; $extension = ''; // Attempt to find proper directory from current page to Root ... $numAttempts = 0; while (!file_exists($extension . $pathFile) && $numAttempts < 5) { $extension = '../' . $extension; $numAttempts++; } require $extension . $pathFile; /* * This script expects that these files are in the same directory */ require 'SeriesManager.php'; $series = new RowManager_SeriesManager(); $series->setTitle($_REQUEST['Title']); $series->createNewEntry(); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>FormExample</title> </head> <body> <h1>Enter A new Series:</h1> <form action="" method="post"> Name: <input name="title" type="text"><br> <input type="submit" name="Submit" value="Submit"> </form>