If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Poll, viewing in "_parent" frame  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello. Well, i am running a site with frames. And, when i click the vote button, instead of refreshing the whole page and displaying the results, it opens the WHOLE PAGE inside the MAIN frame. This only happens when i click the vote button. I configured it with the 'view results' link so that it loads the link in the "_parent" frame. Does anyone know how to do this with the vote button. I want it to load in the "_parent" frame rather than my "main" frame.

Thanks in advance.
zentz
Beginner

Joined: 09/09/2005 22:47:08
Messages: 5
Offline

nobody knows the answer ?
[ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

<form action="blah.php" method="post" target="_parent">

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
zentz
Beginner

Joined: 09/09/2005 22:47:08
Messages: 5
Offline

Carbonize wrote:<form action="blah.php" method="post" target="_parent">


i added a parent here <form method="post" action="$this->form_forward" target="_parent">

but now i get this error:

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/zentz/lust.com/public_html/index3.php:2) in /usr/home/zentz/lust.com/public_html/~poll/pollphp/textfile/poll_cookie.php on line 21
[ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Did you edit either of the mentioned files and if so what did you use? Things like cPanels filemanager have a nasty habit of putting extra lines onto the end of files when you save them.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
zentz
Beginner

Joined: 09/09/2005 22:47:08
Messages: 5
Offline

Carbonize wrote:Did you edit either of the mentioned files and if so what did you use? Things like cPanels filemanager have a nasty habit of putting extra lines onto the end of files when you save them.


nope. nothing.. i just checked in the poll_cookie.php file and this is the 21th line: setcookie($cookie_name, "1", $endtime);
[ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I was thinking more of line 2 of index3.php
output started at /usr/home/zentz/lust.com/public_html/index3.php:2

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
zentz
Beginner

Joined: 09/09/2005 22:47:08
Messages: 5
Offline

Carbonize wrote:I was thinking more of line 2 of index3.php
output started at /usr/home/zentz/lust.com/public_html/index3.php:2


this is the line 2 of the source file <head><?php virtual ("/cgi-bin/atx/in.cgi"); ?>

after the page is loaded the 2nd line will change and maybe that is the problem ?
[ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

make sure poll_cookie.php is the top most line in index3.php
white space counts as starting the headers, so remove any.

ps. as in top most, i mean something like...

<?php
include....

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
zentz
Beginner

Joined: 09/09/2005 22:47:08
Messages: 5
Offline

Auron wrote:make sure poll_cookie.php is the top most line in index3.php
white space counts as starting the headers, so remove any.

ps. as in top most, i mean something like...

<?php
include....


ok that helped.

thanks guys!
[ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

No problem : )

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum