Archive for July, 2008

How much tax do you pay?

With the current political and economical climate I was wondering how much tax I actually pay every month so I spent a quick five minutes working it out. Every month we’ve got those taxes we need to pay:

  • Income Tax – 20% a month
  • Council Tax – £113 a month
  • Road Licence Tax – £15 a month

So that’s the big ones every month but it doesn’t stop there because for everything else (except rent in my case) you pay tax on in the form of VAT at 17.5%. And then if you have any money left after paying all the bills and want to enjoy yourself, you may have to shell out more on added tax on beer or cigarettes for example.

Then there’s the issue with fuel – as well as VAT, there’s also Fuel Duty Tax – an extra 43% per litre.

I’ve worked this out and for my wages it works out that by paying my bills and going to work every day, about 36% of my money goes straight in the governments pockets. And then they piss it all away building big wheels in London instead of using it productively to improve the conditions of living in the country.

Something to think about.

 

IE7 File Uploads don’t work – nothing happens

So, Microsoft have a released a new Internet Explorer and as per usual, we’re going to have to re-code all our sites for it. So, what’s this versions problem: file uploads.

I have a site that uploads a file in the usual HTML form way and then the PHP on the server checks if it’s a JPEG and uses copy() to move it to a desired folder. I tested it in FireFox and everything was working fine and since it’s so simple a script I left it at that. Then a client with IE7 called me because he was trying to upload a jpeg and nothing was happening. I fired up IE and gave it a go and when I clicked on the Submit button it just sat there, doing sod all.

A bit of digging and I found that the problem was because I’d included the following in the code for the Submit Button:

onClick=”this.disabled = true;”

This was being executed by IE and then it appears it just sits there and forgots you clicked Submit. You can give IE a good kicking and get it working again by changing it to:

onClick=”this.disabled = true; document.form.submit();”

I hate IE and M$