The form looks like this:
<form action='localhost/test.php' method='post' target='test'>
<input type='text' name='add_to_url' value='' />
<input type='submit' name='submit' value='Go' />
</form>
And I can’t get anything to even come close.
Ideally the bookmarlet would use the current webpage URL as the add_to_url value, and then submit the form.
Any leads?
To get the url of current page you need to use location.href Javascript property.
To get started with developing bookmarklets, you can go through following links:
http://www.bookmarklets.com/tools/categor.html
http://betterexplained.com/articles/how-to-make-a-bookmarklet-for-your-web-application/
Also, you can search for bookmarklets Javascript code on Search Bookmarklets