Search the Community
Showing results for tags 'poll'.
-
I downloaded this source package for a poll system that runs on jquery and php. Here is the "to do" list to make the program work. 1. Setup mysql database to have one row and x number of columns (however many questions in poll). 2. Configure updatePoll.php with database location, name, and password. 3. Include in index.php file the required JS: createPoll.js style.css from jQuery: jquery-1.4.4.min.js jquery.ui.core.js jquery.easing.1.3.js jquery.core.js 4. Load index.html in your browser! i 5. Style poll questions using the style.css, and/or change to be traditional poll (i.e. radio buttons). 6. Demo: http://www.bheberto.com/devblog.php?id=5 I got steps 1 and 2 done. I also got part of 3 done. How do you include the jquery-1.4.4.min.js? is that something your download? I know nothing about jquery, I only know php, html, and css right now. index.html style.css updatePoll.php
-
Hi, I have set up a number of pages with a vote poll on them, I need the page to refresh when the submit button is pressed, the php code is: I have tried doing it without the window.location.reload() but it makes not difference echo '<td width="330" valign="top"> <div class="vpolls" id="vp_1"> <div class="vpdt"></div> <span class="h5">Do you agree with this new system of collecting Council Tax? </span> <form action="http://www.tckennedy.co.uk/vpoll/vpoll.php" id="vpf1" method="post" onsubmit="return votePoll(this);window.location.reload();"> <input type="hidden" name="idp" value="1" /> <label for="p1i0"><input type="radio" name="item" value="Yes" id="p1i0" />Yes</label> <label for="p1i1"><input type="radio" name="item" value="No" id="p1i1" />No</label> <label for="p1i2"><input type="radio" name="item" value="Undecided" id="p1i2" /> Undecided</label> <input type="submit" value="Vote" name="sbm" /> <br> <p><span class="p5">Please note that only one vote per person is now permitted for each poll</span></p> </form> </div></td>'; echo '<td width="10"><p> </p></td>'; echo '<td width="330" valign="top">'; include('vpoll/vpoll.php'); echo '<div class="vpolls">'. $obVot->showPoll(1) .'</div>'; echo '</td>'; echo '<td width="290"></td>'; echo '</tr>'; echo '</table>'; ?> The website is tckennedy.co.uk where you can see what is happening. I need the page to refresh when the vote button is pressed and the results to update. Any help with this would be really gratefully recieved. Thanks