By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,277 Members | 1,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,277 IT Pros & Developers. It's quick & easy.

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

P: 8
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="guernica.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>
Apr 9 '07 #1
Share this Question
Share on Google+
3 Replies


P: 8
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.
Apr 9 '07 #2

ronverdonk
Expert 2.5K+
P: 4,258
That's okay. Can happen to anyone (and will probably).

Ronald :cool:
Apr 9 '07 #3

100+
P: 114
There is no problem in your code...just check once again.

Thanks
Deepak
Apr 9 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.