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

  • Home
  • SEARCH
  • 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 7760723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:57:53+00:00 2026-06-01T13:57:53+00:00

I need to send some data with radio button. This buttons are <td> <span

  • 0

I need to send some data with radio button.

This buttons are

<td>
  <span style="color:red">Sil</span>
    <input name="{$spam.encId}-{$spam.comment}-{$spam.to}-{$spam.userId}" type="radio" value="DENIED"><br>
  <span style="color:green">Onayla</span>
    <input name="{$spam.encId}-{$spam.comment}-{$spam.to}-{$spam.userId}" type="radio" value="ACCEPTED">
</td>

This buttons exist like that

In php side, i print all data which radio keeps. The problem is that only first button works correctly. I cannot put data second and third one.

enter image description here

This is the code.What might be the reason ?

<form action="#" method="post">
  <div class="destek_inside" >
    <table width="1000" border="1" class="std">
      <tbody>
        <tr class="header">
          <td class="pd_5 bold per25">Kullanıcı Adı</td>
          <td class="pd_5 bold per25">İçerik</td>
          <td class="pd_5 bold per25">Yorum</td>
          <td class="pd_5 bold per25">Durum</td>
        </tr>
        {foreach from=$spams value=spam}
          <tr>
            <td class="pd_5">
              <a href="{$spam.userUrl}" class="no_link_style bordo" target="_blank">{$spam.user.username}({$spam.userId})</a>
            </td>
            <td class="pd_5">
              <a href ="{$spam.typeUrl}" target="_blank">{$spam.typeData.name} {$spam.typeData.surname}</a>
            </td>
            <td class="pd_5">{$spam.comment}</td>
            <td>
              <span style="color:red">Sil</span>
                <input name="{$spam.encId}-{$spam.comment}-{$spam.to}-{$spam.userId}" type="radio" value="DENIED"><br>
              <span style="color:green">Onayla</span>
                <input name="{$spam.encId}-{$spam.comment}-{$spam.to}-{$spam.userId}" type="radio" value="ACCEPTED">
            </td>
          </tr>
        {/foreach}
      </tbody >
    </table>
  </div>
  <p align="right"><input type="submit" name="save" value="Kaydet"/></p>
</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-06-01T13:57:54+00:00Added an answer on June 1, 2026 at 1:57 pm

    Seems like you place $spam.comment to the radio button’s name. The second entry has quotes in the text. So you have invalid name:

    «input name=”……”c”….”

    This is the reason, that you have data from the first radio only

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

Sidebar

Related Questions

I need to send an apex web service some data. Then name of the
I need to send some byte array from android device to Servlet. For this
i'm trying to send some radio buttons from a form with ajax, the problem
I need to send some other data, ideally wrapped in a JSON object, down
I need to send some of my data into another server. Actually to post
I need that my app will send some data to server every six hours
i need to send some data with the html page to the browser, which
Say i need to send some data from AS 3.0 to a server-side script
I need to basically send some data to 98.136.86.109 at port 587. How can
When one of clients changes some data on server I need to send a

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.