Display Submission in pop up window

Discussion in 'PHP' started by sleepydad, Jul 17, 2007.

  1. #1
    I have created an html page to collect information (username, password) to be passed to a php page for validation. When the user clicks "Submit" I would like the collected information to display in a separate pop-up window leaving the parent window intact below.

    How would I modify ...

    <input type="submit" value="submit">

    to do what I'm trying to do? Or am I going about this all wrong? Open to suggestions. Thanks in advance.
     
    sleepydad, Jul 17, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    It's not valid XHTML, I believe, but the following should work:
    
    <form action="file.php" target="_blank" method="post">
    
    HTML:
     
    nico_swd, Jul 17, 2007 IP
  3. sleepydad

    sleepydad Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for the reply. I guess I should've been more specific. I would like the window to open small, maybe 200px x 200px, as I could with a window.open(); javascript command. Any other suggestions ... anyone?
     
    sleepydad, Jul 17, 2007 IP