I am making a plugin to create a poll…
This is my “pseudo-code” so far…(It is very basic)
Right now I am passing it currentURL so it will redirect to the page it was on…
The function will then check if the submit button has been “submitted” and act accordingly…
Is it possible to use the input class inside the plugin?
Will this work? Is their any conflict with checking if a form has been submitted in a plugin (The plugin will be autoloaded on every page)?
function displayPoll($currentURL)
{
// Check for Cookie
// Check if vote has been cast
//Displays Vote Form
//Displays Results
}
