<script>
function open_me()
{
var wert = document.State.State.value;
var url= "http://127.0.0.1/dummy.php?state="+wert;
window.open(url,"Fenster1","width=310,height=400,left=0,top=0");
}
</script>
<a href="#" onclick="document.images[0].src='2.jpg'"><img src="1.jpg"></a>
<form name="State" onsubmit="open_me()"><input type="Text" name="State"><input type="Submit"></form>
und dummy.php :
_________________
<?php
echo $state;
?>