I'm asking why CORS can't be used in this situation, because it could if I was making an XMLHttpRequest to submit data.
Why do you think I just want someone to post a load of code? Nobody learns that way. Surely you don't just hover around these forums posting code all day. Sometimes explaining things is better, quicker and more helpful.