The poll layout is described as show_vote_control
PHP Code:
<title>Polling Booth</title>
<?php
require_once('poll/poll.php');
?>
<div class="poll"><h3>Poll 3</h3><?php show_vote_control('1'); ?></div>
It appears that the email input may have to go inside the POLL DEFINATION!
In config.php POLL DEFINATION is described in the following terms:
PHP Code:
$p = new Poll;
$VALID_POLLS["1"] = $p; // "1" is the poll ID
$p->legend = "Our First Poll"; // Form legend; leave empty for none
$p->returnToURL = "../booth.php"; // Specify the URL to return to for this poll.
$p->control_type = $CONTROL_RADIOBUTTONS; // Control type; $CONTROL_RADIOBUTTONS or $CONTROL_COMBOBOX
//POLL QUESTION//
$p->question = "Do we need a Town Council?";
//POLL ANSWERS//
$p->add_value("1", "Yes");
$p->add_value("2", "Probably");
$p->add_value("3", "No");
$p->add_value("4", "Undecided");
and this renders as img attached with the information relevent to the voter input being sent to the flat file.
Using HTML to install as follows:
Include your EMAIL to Validate <input type="text" name="email" />
just before the </div> of the <div class="poll"> renders an email input field - how such input might find its way to the flat file along with the vote and the ip detail would resolve!
Not sure if this helps you to add further comment on task direction!
Bookmarks