Passing Variable To A Javascript Pop-up Window Help!

I have a form in my main page. When I click the submit button, it will open a pop-up window but the variables in my form are not being passed.
I used this code in the form tag. But it doesnt work.

<form... ...action="javascript:open_window('myphpfile.php','sb',640,480)">

Any ideas?!!