Bookmarker is a simple CGI script (written in perl) which keeps track of bookmarks. I wrote it because I use browsers on multiple computers ( 3 at university, 1 at home, and my laptop) which don't share filesystems, and it is annoying when the bookmarks get out of sync - and a pain to keep them in sync when dealing with different browsers.
I have the following bookmark in each browser, which I use to bookmark the page I am currently viewing: javascript:document.location="http://www.cs.usyd.edu.au/~sholden/STUFF/BOOKMARKER/bookmarker.cgi?mode=add;name="+escape(document.title)+";url="+document.location
And another bookmark to view my bookmarks: http://www.cs.usyd.edu.au/~sholden/STUFF/BOOKMARKER/bookmarker.cgi?mode=list_cat
Of course the bookmarks I use have the URL that my installation actually is located at.
Maybe you could use something similar, if so, you can download or look at the code (as a text file due to web server issues): Bookmarker.
You can see a sample running, unless someone has broken it by adding text that I haven't bothered escaping yet, or added so much crap, that page loads take hours... or of course deleting all the bookmarks...