I have wordpress installed on my local computer, so it's running on http://localhost/wordpress. I've created posts, pages and everything and now I want to move the installation to my webhosting server. The problem seems to be that the images in my posts (that were 'uploaded' into my wordpress installation with the standard flash uploader) refer to the absolute path, for example http://localhost/wordpress/wp-content/uploads/2009/03/image.jpg. I checked this in phpMyAdmin. So when I move the wordpress installation to my webhost's server, the images are still linking to my local computer. I could change all the paths in phpMyAdmin, but I'm wondering what went wrong in the first place. Is this behavior intended? I couldn't seem to find other users having the same problem so I guess not.
So what's the best solution for this problem, what did I do wrong, and how can I prevent this from happing next time?