title: how to save multiple radio button in database using php without save button value
body: <p>how to save multiple radio button in database using php without save button value.</p>
  
  <p>my code :</p>
  
  <pre><code>$user_id = $_POST['user_id'];
  foreach ( $_POST as $key =&gt; $val ) {   
      if ($key &lt;&gt; 'user_id') {
          $bidder_interst_insert="INSERT INTO bidder_interest_list(id, bidder_id, bidder_interest_name) VALUES ('','$user_id','$val')";
          $bidder_interst_insert_result = mysql_query($bidder_interst_insert);
          if (mysql_affected_rows() &gt; 0) {
              $interest_list_success = "Thank you Successfull insert your interst list.";
              $_SESSION['interest_list_success_msg'] = $interest_list_success;
          } else {
              $insert_error = "interst list Insert Error.";
              $_SESSION['insert_error_msg'] = $insert_error;
              header("location:interest_list.php");
          }
      }
  }
  </code></pre>
  
  <p>This code work but database extra save in save button value how to solved this problem??</p>
  
  <p><a href="https://i.stack.imgur.com/tVDMc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tVDMc.png" alt="enter image description here"></a></p>