Attach multiple image and display then into scrollpane in flash using php

i am developing one web based application, in that i need to upload multiple images and display them into scrollpane. save them in any temp directory on the server. when i send the relavant message. Those images also should be sent as attachement. any idea pleaze.