help me please..

my code for vote can't work to counting when the user send their vote...
please look at the attachment..

run poll.php at localhost, and the results will display at results.php. but it fail to increase one vote that just add before.

hope you all can help me N sory for my bad english.
TQ

Hi Shezz,
so you run savevote.php and it still won't save the vote, right? Does it show any error message?
The script makes sure that you vote only once so perhaps that's why - you're trying to vote more than once.

Or maybe DOMDocument isn't supported in your PHP installation. Or the link to savevote.php is bad and doesn't contain variable "votefor".

Can I see it somewhere live?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.