PDA

View Full Version : Adding a Checkbox to the Poll form to update sql db?


TomasDR
03-23-2007, 05:48 AM
I am trying to add a checkbox to the newpoll form and pass it to the poll table using a plugin. I was working off a completely different hack that does it for calendar events but I am not sure why it isn't working here.

The checkbox definitely appears but the value isn't being passed on to the poll save and not updating the db. I do have the field "polltest" in the poll table and the hook is "poll_newform_complete".

$disablesmiliesoption.='<div><label for="cb_polltest"><input type="checkbox" name="polltest" value="1" id="cb_polltest" tabindex="3" '.$polltest.' />'.$vbphrase['poll_polltest'].'</label></div>';

Thank you in advance.