470,831 Members | 1,363 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,831 developers. It's quick & easy.

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="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
3 2306
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
4,258 Expert 4TB
That's okay. Can happen to anyone (and will probably).

Ronald :cool:
Apr 9 '07 #3
deepaks85
114 100+
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.

Similar topics

3 posts views Thread by asianboi | last post: by
3 posts views Thread by Aaron | last post: by
18 posts views Thread by zoilus | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.