Sending form info to original window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Person

    Sending form info to original window

    I have a popup window with a form:

    The popup window is opened like this:

    <SCRIPT LANGUAGE=javasc ript>
    window.open('pr imos.html', 'primos', config='height= 300,
    width=400')
    </SCRIPT>

    The form on the popup window is this:

    <form action="primos. php" method="POST">
    Buscar los primos entre 1 y
    <input type="text" size="7" name="max" value="1000"><b r>
    <input type="submit" name="start" value="Start">
    </form>

    How can I get the form to send the info to "primos.php " and open it in
    the original window?

    Thanks in advance,
    Philippe
  • Randell D.

    #2
    Re: Sending form info to original window


    "Person" <person00000000 00@yahoo.com> wrote in message
    news:91509768.0 310201926.72b42 4aa@posting.goo gle.com...[color=blue]
    > I have a popup window with a form:
    >
    > The popup window is opened like this:
    >
    > <SCRIPT LANGUAGE=javasc ript>
    > window.open('pr imos.html', 'primos', config='height= 300,
    > width=400')
    > </SCRIPT>
    >
    > The form on the popup window is this:
    >
    > <form action="primos. php" method="POST">
    > Buscar los primos entre 1 y
    > <input type="text" size="7" name="max" value="1000"><b r>
    > <input type="submit" name="start" value="Start">
    > </form>
    >
    > How can I get the form to send the info to "primos.php " and open it in
    > the original window?
    >
    > Thanks in advance,
    > Philippe[/color]

    PHP is server side based - you're likely to need client-side Javascript to
    do this cleanly for you since you want to send data from one window to
    another without any other interaction other than the submit button alone,
    true?

    Try comp.lang.javas cript.


    Comment

    • René

      #3
      Re: Sending form info to original window

      Try adding target="_parent " to your form tag.

      "Person" <person00000000 00@yahoo.com> escribió en el mensaje
      news:91509768.0 310201926.72b42 4aa@posting.goo gle.com...[color=blue]
      > I have a popup window with a form:
      >
      > The popup window is opened like this:
      >
      > <SCRIPT LANGUAGE=javasc ript>
      > window.open('pr imos.html', 'primos', config='height= 300,
      > width=400')
      > </SCRIPT>
      >
      > The form on the popup window is this:
      >
      > <form action="primos. php" method="POST">
      > Buscar los primos entre 1 y
      > <input type="text" size="7" name="max" value="1000"><b r>
      > <input type="submit" name="start" value="Start">
      > </form>
      >
      > How can I get the form to send the info to "primos.php " and open it in
      > the original window?
      >
      > Thanks in advance,
      > Philippe[/color]


      Comment

      Working...