Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6055075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:13:26+00:00 2026-05-23T08:13:26+00:00

So i have the same form 2-3 times in the same page which is

  • 0

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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:13:26+00:00Added an answer on May 23, 2026 at 8:13 am

    You can either have a different name foe each form or a hidden field in each form which tells the question id.

    <form action="" method="post" name="form">
    radio buttons here...
    <input type="hidden" name="poll_id"  value="(Your_question_id)">
    <input type="submit" value="Vote" name="btn" />
    </form>
    

    So, after this, in you SQL part just add the poll_id here in the WHERE clause. Think this should work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 5 links that are on the same form but I would like
I have WPF Form which has many buttons with the same code. Appearance of
I have 3 forms at the same page and each has a different form
I have a global form which I want to use the same form every
I have a .net 3.5 page which has a form control (form1) and with
I have two web pages which work basically the same, code-wise, but one of
I have two different grid controls on the same form. They share the same
I have 2 handlers using the same form. How do I remove the handlers
I have a form with 2 text boxes that all do the same thing.
I have an application with multiple forms, each form has the same icon, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.