Jump to content

Question about a form


vinnier

Recommended Posts

First of all, HELLO ;)

 

I know it's html basics but I've been working on the website for the last 48h with no break and I'm not seeing straight.

 

I've set up a new website using Wordpress, which uses feedburner for subscription. (let me just say that I've tried wp forum but it doesn't look like I will get any help there anytime soon)

 

The basic form came in with the template only needed adjusting to the account etc.

Once I've done it, I've noticed a problem; once I submit the form I get the feedburner confirmation window as a pop-up and the same starts to open in the main window.

Pure madness. I only want the pop-up window, so I've been trying to adjust the script, and I'm stuck as the feedburner confirmation loads always in the main window.

For now I'm stuck with this:

<input type="hidden" value="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')">

 

And there is no pop up at all right now, it only loads in the main window.

 

For reference, here is the whole bit of the form code:

<form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" method="post" class="subscribe">
<fieldset>
<input type="text" class="feedinput" value="Your email address ..." name="email" />
<input type="submit" class="feedsubmit" value="Join" />
<input type="hidden" value="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')">
<input type="hidden" value="<?php echo $blog_title; ?>" name="title"/>
<input type="hidden" name="loc" value="<?php echo $location; ?>"/>
</fieldset>
</form>

 

Summarising, I want the form submission to only open a pop up that will display the feedburner page, and the main window to stay the same.

 

Please help me out here, as I feel so stupid right now... ;)

 

Link to comment
https://forums.phpfreaks.com/topic/185043-question-about-a-form/
Share on other sites

Thanks. I'm kinda back where I started... :/ With this;

<form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')" method="post" class="subscribe target="_new"">
<fieldset>
<input type="text" class="feedinput" value="Your email address ..." name="email" />
<input type="submit" class="feedsubmit" value="Join" />
<input type="hidden" value="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement"/>
<input type="hidden" value="<?php echo $blog_title; ?>" name="title"/>
<input type="hidden" name="loc" value="<?php echo $location; ?>"/>
</fieldset>
</form>

 

I'm getting a new window like i want but the content is also loading in the main window  :shrug:

 

How do I stop that from happening?

 

 

 

EDIT:

 

Tried removing the hidden value;

	<form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')" method="post" class="subscribe target="_new"">
<fieldset>
<input type="text" class="feedinput" value="Your email address ..." name="email" />
<input type="submit" class="feedsubmit" value="Join" />

<input type="hidden" value="<?php echo $blog_title; ?>" name="title"/>
<input type="hidden" name="loc" value="<?php echo $location; ?>"/>
</fieldset>
</form>

 

No change... :/

 

won't this work

 

<form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" method="post" class="subscribe" target="_new">
   <fieldset>
   <input type="text" class="feedinput" value="Your email address ..." name="email" />
   <input type="submit" class="feedsubmit" value="Join"/>
   <input type="hidden" value="<?php echo $blog_title; ?>" name="title"/>
   <input type="hidden" name="loc" value="<?php echo $location; ?>"/>
   </fieldset>
   </form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.