This is a dangerous way to do things. There isn't really a "sender address". There are just previous outputs that are used as inputs.
Additionally, people using online wallets, such as Mt.Gox, do not necessarily get credited for transactions that go back to the "sender address".