Vote poll from URL
-
Hi,
I need vote any item of poll from outside from URL. But can’t find how can I do this. Like below code
<input type="radio" id="poll-answer-10" name="poll_4" value="10" /> <label for="poll-answer-10"> <input type="radio" id="poll-answer-11" name="poll_4" value="11" /><label for="poll-answer-11">with
<input type="button" name="vote" value=" Choose This " class="Buttons" onclick="poll_vote(4);" />I did try wrong URL like below, but doesn’t work and get
http://127.0.0.1/wp-content/plugins/wp-polls/wp-polls.php?id=poll-answer-11&name=poll_4&value=11
or
http://127.0.0.1/wp-content/plugins/wp-polls/wp-polls.php?id=poll-answer-10&name=poll_4&value=10Error message
Fatal error: Call to undefined function add_action() in C:\wamp\www\wordpress\wp-content\plugins\wp-polls\wp-polls.php on line 32
Call Stack
# Time Memory Function Location
1 0.0141 1805384 {main}( ) ..\wp-polls.php:0
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Vote poll from URL’ is closed to new replies.