Jump to content

Recommended Posts

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 ???

Link to comment
https://forums.phpfreaks.com/topic/67875-solved-php-poll-problem/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.