I need a bit of clue here. What I want to do is to allow user to submit a url to my website through a bookmarklet. So when they click on the bookmarklet, the textfield with id (field_url
) will be autofilled with the url on the page they are on. I looked around and found that I need to use this piece of code for the bookmarklet.
javascript:location.href="http://mywebsite.com/geturl.php?url="+encodeURIComponent(location.href);
My question: what should I put in geturl.php
in order to autofill the textfield?