<? echo "<form enctype='multipart/form-data' action='".preg_replace('/\/([^\/]+?)$/', '/', $_SERVER['PHP_SELF'])."' method='post'>"; ?>