yeah pretty much, but document.forms.FormName.varName.value refers to the contents of the textbox that you wanted to post. this way you can do the popup without having to post the form.

    thanks for your help Drew10.

    Still no popup. Is this looking right?
    Form name=addSummary
    Select name=stockId

    <a href=\"javascript:;\" onClick=\"window.open('auAddSummary.php?action=view&stockId=".$_GET[$stockId]."' + document.forms.addSummary.stockId.value, null, width=440,height=570,scrollbars=yes,status=yes,windowX=10,windowY=10); return false\">

      More precise assistance on how to program in Javascript may be found in a Javascript forum. Since PHP does not run on the client, it's not involved in client-side programming.

        i think it would be more like
        <a href="javascript:;" onClick="window.open('auAddSummary.php?action=view&stockId=' + document.forms.addSummary.stockId.value, null, 'height=400,width=400'); return false">Popup</a>
        escaping quotes if in echo tag of course.

          THANK YOU!
          You've made my day.

          Final Code :

          <a href=\"javascript:;\" onClick=\"window.open('auAddSummary.php?action=viewFaceStock&stockId=' + document.forms.addSummary.stockId.value, null, 'windowX=10,windowY=10,width=440,height=570');
          return false\">Popup</a>

          Now, is there a way to use a button a'la submit?

            Now, is there a way to use a button a'la submit?

            so you wanna do that same thing but with a button instead of link?

              yup.. so thats just an image right?
              It needs to be without forms.

                I've worked it out.
                Thanks again for your help.

                echo "<input class=\"btn\" type=\"button\" onclick=\"window.open('auAddSummary.php?action=viewFaceStock&stockId=' + document.forms.addSummary.stockId.value, null, 'windowX=10,windowY=10,width=440,height=570')\" value=\"View Face Stock 2\"><br>\n\n\n\n";

                  Uncalled for don't you think Weedpacket.

                    Weed, Drew was kind of enough to start the help, so you can't blame facets for continuing to ask for help... [smacks drew over the head with a wet noodle]

                    facets, all Weed was saying is that although you may get JavaScript help here if someone knows enough to help you out, your question would be better served in a more suitable and applicable forum. Weed's not chasing you out or anything. We all use several forums for getting and giving help, because it just creates mass confusion when you try to branch out established forums into realms they weren't designed for.

                      I understand and Thank Drew very much, and even try to 'take the wet noodle for him'.
                      Strictly php from now on.

                      Thanks one and all. Will.

                        Write a Reply...