<% $Clean= stripslashes( $_POST[Title] ); $Clean2= htmlspecialchars( $Clean ); $Clean3= trim( $Clean2 ); $Settings= fopen( "PhotoStore/".$CatNo."/Titles/".$Filename[$PhotoNo].".txt", w ); fwrite( $Settings, $Clean3 ); fclose( $Settings ); %>