well , it depends on what are the conditions you want ..
like when do you want it to be submited to itself and when do you want it to be sent to another ?
anyway IF statments are your friends in this case ..
example :
that's how you change the direction of the file ..
but give us more details so we can help more ..