Ah ha! I think I found where the problem lies(and also our confusing disconnect). Even though you and I were doing pretty much the same thing, your case worked fine in the instance where the parameter being submitted in the self submitting form was only one word. If you changed your test case to something like "hi there" (which is what I was using in my testing), it breaks. Why? The parameter needs to be urlencoded first.
Thank you very much for your help and suggestions, Toby! I really appreciate your time and effort in helping me to see the light. --Sam Toby Irmer wrote: > Hi Sam, > > I did that only because I was too lazy to upload and did the testing > locally so I could grab the value in Javascript. > > Of course it works with post as well... > > test.html > > <form name="myform1" method="get" action=""> > <input type="hidden" name="myvar1" value="testing"> > <script> > window.open("test2.html", "test"); > </script> > </form> > > > test2.html > > <BODY onLoad="document.forms[0].submit();"> > <form name="myform1" method="post" action="test.php"> > <INPUT TYPE="hidden" NAME="do_preview" VALUE="1"> > <script> > document.write('<INPUT TYPE="hidden" NAME="itworks" > VALUE="'+opener.myform1.myvar1.value+'">'); </script> > </FORM> > </BODY> > > test.php > > <? > print_r($_POST); >> > > Outputs: > > Array ( [do_preview] => 1 [itworks] => testing ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php