action="page.php" in my form opens in new window, why?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paviktherin
    New Member
    • Apr 2007
    • 8

    action="page.php" in my form opens in new window, why?

    Okay so I have this form that I have made in order to post comments on a website, the form works fine when I send it to guernica.php for example but it opens it in a new page, I don't know why. Then to make things even more weird I have the guernica.php page automatically redirect to guernica.html and if you submit a form then have it redirect you back to that page and submit a new form it doesn't open in a new window. In other words only the first time you submit a comment does it open the guernica.php in a new window. Any ideas?

    oh and here is the form code if that helps:

    <form action="guernic a.php" method="post">
    Subject: <br><input type="text" name="subject" /><br>
    Name: <br><input type="text" name="name" /><br>
    Comments: <br><textarea input type="textarea" cols="50" rows="10" name="comments" /></textarea><br>
    <input type="submit" value="Submit"/>
    <input type="reset" />
    </form>
  • paviktherin
    New Member
    • Apr 2007
    • 8

    #2
    umm scratch that, ignore this I found that on my page I had a base target="article " for some reason. don't ask me why. anyway sorry.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      That's okay. Can happen to anyone (and will probably).

      Ronald :cool:

      Comment

      • deepaks85
        New Member
        • Aug 2006
        • 114

        #4
        There is no problem in your code...just check once again.

        Thanks
        Deepak

        Comment

        Working...