creating and storing text using php