Hi, simple question.. I have a simple form that i want to open a google search in a popup: <FORM NAME="myform" ACTION="" METHOD="GET"> <INPUT TYPE="text" NAME="field1" VALUE=""> <INPUT TYPE="text" NAME="field2" VALUE=""> <INPUT TYPE="button" NAME="button" Value="Open Window" onClick="window.open('http://www.google.com/search?hl=en&q=', '', 'width=460, height=460')"> </FORM> PHP: Anyone can help me put the 2 field values into the string? Thanks
onClick="window.open('http://www.google.com/search?hl=en&q='+document.myform.field1.value+'+'+document.myform.field2.value, '', 'width=460, height=460')">