leons Posted September 4, 2007 Share Posted September 4, 2007 I had my first try at getting a Poll working (downloaded from: http://www.hotscripts.com/Detailed/65932.html), and really the first time in dabbling with PHP. Could anyon have a look at the following page, and tell me why when I click the 'vote' button, it does not update the count in the results.txt file. I have changed the rights of all files including the results.txt, to 777, but still no luck. http://www.jvillesc.org.nz/html/poll/poll_submit.html Please ignore the layout etc, as I'm just doing it at the moment to 'see how it works', when i've got the results populating, then I'll progress with designing it, and putting some valid vote options in there. Also, when clicking submit it isn't taking me to the "$poll_redirect_page", this piece of code that I've changed in "form.php" looks like: $poll_redirect_page = "http://www.jvillesc.org.nz/html/poll/thank_you.html"; // Change this to the page you want to redirect the visitor to after he/she votes Your help would be most appreciated. Leon ??? Quote Link to comment https://forums.phpfreaks.com/topic/67875-solved-php-poll-problem/ Share on other sites More sharing options...
gerkintrigg Posted September 4, 2007 Share Posted September 4, 2007 try saving your files as php documents? Quote Link to comment https://forums.phpfreaks.com/topic/67875-solved-php-poll-problem/#findComment-341162 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.