vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   simple poll integration problem (https://vborg.vbsupport.ru/showthread.php?t=30442)

montybug 10-15-2001 06:13 PM

hi all

i'm trying to add polls from my VB forums on my main website page. I know that there's a project someone is working on to make this slick and web manageable and also VBportal has something similar too. But I just need something very very simple but I cant get it to work.

here's a stripped down version of my code so far

Code:


<form action="poll.php" method="get">
<input type="hidden" name="action" value="pollvote">
<input type="hidden" name="pollid" value="1">
<b> does this poll work?</b></font></td>
<input type="radio" name="optionnumber" value="1">
<input type="radio" name="optionnumber" value="2">
<input type="submit" name="Submit" value="Vote">
<p>
<a href="poll.php?action=showresults&pollid=1">View Results</a>
</form>

right now i see two linked problems -

1) how to get get a session id for the vote? or is it even needed? i originally had a hidden variable for this but removed it because i had no idea how to set it.

2) when i click on vote i get the following here - The action you have attempted could not be performed as your session appears to be invalid. Click the below link to attempt this action again with a new session. .

any ideas?

oh! and the view results works :)

thanks in advance

chris


All times are GMT. The time now is 09:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01077 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete