Searched and couldn't find an answer on this one. I am not much of a coder and know very little about javascript. Hoping someone here can help me out. I need to get the user's geoip city and then insert it as a value into a form. I have this script for getting the geoip city...

<script src="http://j.maxmind.com/app/geoip.js"></script><script type="text/javascript">document.write(geoip_city());</script>

I need that city to be put into the value part of the form

<input type="hidden" name="city" value="NEED CITY INSERTED HERE"></input>

Any ideas on how to do this?