I have a form like this:
<form action='index.php' method='POST' id='sampleform' name='sampleform'>
<input type=text name=image size=20 value=''>
</form>
And I want to populate the image field from a popup window.
I'm trying to do it with this:
<a href="#" onclick="window.opener.document
.getElementById('image').value='<? echo $id;?>';window.close();">
<? echo $id;?>
</a>
But it doesn't work.