BNET UK
silicon.com
ZDNet UK
Anonymous user
log in
|
register
Username
Password
close
forgot password
|
register
Site Navigation:
Home
News
Comment
CIO Insights
Videos
White Papers
Resources
Jobs
You are here:
silicon.com
>
research
>
specialreports
>
as2004
Who's on it?
silicon.com presents
Reader Vote
Sponsored by
[? // check if poll has been been submitted if (isset($_REQUEST["_pid"]) && isset($_REQUEST["_oid"])) { library("/lib/cneteu/set_poll.htm"); library("poll/get_poll.htm"); library("poll/get_poll_summary.htm"); // set the user poll response unset($values); $values["POLL_ID"] = $_REQUEST["_pid"]; $values["POLL_OPTION_ID"] = $_REQUEST["_oid"]; //$values["COOKIE"] = $_REQUEST["_pid"] . "-" . $_COOKIE["UID"]; set_poll($values); // get the poll results $poll_id = $_REQUEST["_pid"]; $poll_q_info = get_poll($poll_id); $question = $poll_q_info["QUESTION"]; $option_list = $poll_q_info["OPTIONS"]; $poll_r_info = get_poll_summary($poll_id); foreach ($poll_r_info as $option_id => $count) { $total_vote += $count["COUNT"]; // total count $result_list[$option_id] = $count["COUNT"]; // count for each option } $display_poll_results = true; } else { $display_poll_results = false; ?]