<html> <head> <title>Viewing the source of a document</title> </head> <body> <form action="<?php print $PHP_SELF ?>" method="get"> Enter file name (test.txt): <input type="text" name="file" value="<?php print $file; ?>">
<p></p><hr><p></p>
<?php if ( isset( $file ) ) show_source( $file ) or print "couldn't open "$file""; ?>
</body> </html>
|