Ok I've got this working, dunno if it was a syntax issue or what, but
I did this:
$("a").click(function() { parent.location='upload.php?item=2' });
Although it behaves slightly strange. It opens the upload.php?item=2
as a tab in FF, then opens the original page in a new tab and focuses
on that. My <a> tag:
<div><a href="" id="upload" target="_blank">upload</a> </div>
I would still be interested in any comments regarding this method of
uploading to a mysql dbase...
thanks