So i have the same form 2-3 times in the same page which is a poll question and its generated dynamically from the database so its the same as the others but when i click the submit button i can vote the others aswell since the button on each has the same name with the others...
how can i fix this so it wont affect the other polls?
form is like this:
<form action="" method="post" name="form">
radio buttons here...
<input type="submit" value="Vote" name="btn" />
</form>
idsthats fine, but are you checking which form is submitting in your server side?? ie which form is the values coming from.And do you have aWHEREclause which tells which poll to add the vote to in your SQL query??