Back to myContactForm.com - Easy email form creation and processing for your web site
myContactForm.com - Help Forum Forum Index myContactForm.com - Help Forum
Have a question that you need answered about myContactForm.com? Post it on this message board but first search this forum and read out FAQ to ensure it has not already been answered. This is not a board to post links to your site! SPAM will be deleted!
 
   Search MessagesSearch Messages
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The re-direct page opens in a new window

 
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Form Management
View previous topic :: View next topic  
Author Message
Ness



Joined: 18 Oct 2006
Posts: 3

PostPosted: Wed Aug 15, 2012 3:16 am    Post subject: The re-direct page opens in a new window Reply with quote

The re-direct page opens in a new window in Chrome. How do I get it to open in the same window?
Back to top
View user's profile
mycontac
Site Admin


Joined: 31 Dec 2003
Posts: 2860

PostPosted: Wed Aug 15, 2012 7:04 am    Post subject: Reply Reply with quote

What is the URL of the form? This is not the default behavior, so something is likely been altered in the code.

Nick Ladd
myContactForm.com
Back to top
View user's profile
Ness



Joined: 18 Oct 2006
Posts: 3

PostPosted: Wed Aug 15, 2012 7:35 am    Post subject: Re: Reply Reply with quote

http://www.dieselelectricservices.co.za/competition2012.htm
Back to top
View user's profile
mycontac
Site Admin


Joined: 31 Dec 2003
Posts: 2860

PostPosted: Thu Aug 16, 2012 7:12 am    Post subject: Reply Reply with quote

Good Day,

The issue is that on line 98 of you web site, you have the following code:

Code:
<base target="main">


This is something that is typically used on framed websites. It is essentially telling the form to submit to a new window since the target attribute within our form code is left to its default (as it typically should be). You can either get rid of this line in your code, or override it by adding a target attribute to the form tag.

You would change this:
Code:
<form name="contactForm" id="contactForm" method="post"  action="http://www.mycontactform.com/sendform/sendform.php" style="width: 80%; border: 4px ridge #0700bf; margin: 0; padding: 0; background-color: #e2e2e2;">


To this:
Code:
<form name="contactForm" id="contactForm" method="post"  action="http://www.mycontactform.com/sendform/sendform.php" target="_top" style="width: 80%; border: 4px ridge #0700bf; margin: 0; padding: 0; background-color: #e2e2e2;">


Nick Ladd
myContactForm.com
Back to top
View user's profile
Ness



Joined: 18 Oct 2006
Posts: 3

PostPosted: Thu Aug 16, 2012 9:35 am    Post subject: Reply with quote

Thanks, I removed the base target=main and it is sorted.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Form Management All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group