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 
Putting other php variables into the redirect on Adv Poll  XML
Forum Index » General Discussion
Author Message

Joined: 15/10/2007 16:18:14
Messages: 1


I'm using Advanced Poll. I have recently modified the way I generate my content pages so that each page requires an id to be passed to the PHP as a GET variable. The result of this is that when you vote in a poll, it redirects to the wrong page, because it doesn't pass in the variable.

I can't figure out how to access a PHP variable from the Advanced Poll template. I tried editing this line:

<a href="$this->form_forward?action=results&amp;poll_ident=$poll_id>$pollvars[result_text]</a></font>

For example, like this:

<a href="$this->form_forward?action=results&amp;poll_ident=$poll_id&amp;story=$story>$pollvars[result_text]</a></font>

but that didn't work (I have $story=$_GET['story'] elsewhere.


<a href="$this->form_forward?action=results&amp;poll_ident=$poll_id&amp;story=".$_GET['story']>$pollvars[result_text]</a></font>

didn't work. Can anyone help? I guess my real question is, what happens to the templates before they are displayed? What is the markup language? And can I access arbitrary variables in it?



Yes you can access arbitrary variables in it.
Forum Index » General Discussion
Go to:   
Based on the open source JForum