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 976291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:43:27+00:00 2026-05-16T03:43:27+00:00

I have one input (type radio) that I want to insert it 2 values,

  • 0

I have one input (type radio) that I want to insert it 2 values, something like that:

<input type="radio" name="name" value1="value1" value2="value2" />

And after draw each value seperated with PHP.

There is a way to do it? (And no.. I dont want to insert input with type=”hidden”)

Thank you.

  • 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-16T03:43:27+00:00Added an answer on May 16, 2026 at 3:43 am

    Well, not the way I would do it, but you could use a delimiter for your value(s)

    <input type="radio" value="Value1|Value2" name="two_values" />
    

    Then, in PHP, just list($value1,$value2) = explode('|', $_POST['two_values']);

    EDIT
    As @user387302 said, you would obviously be limited to not having any values containing your delimiter, for example value="One|PipedVariable|andAnother" would not work to extract two values of “One|PipedValue” and “andAnother”

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

Sidebar

Related Questions

I have one image submit button like this <input id=enter name=enter type=image value=Login src=images/btn_login.jpg/>
suppose I have groups of radio buttons like so: <label><input type=radio value=1 name=rdQueen />
So, I have radio boxes of the form <li><input type=radio name=names value=blah><a>Some text (blah)</a></li>
I have the following HTML: <div class=row1> <input type=radio name=group1 value=0 checked=checked/>Zero <input type=radio
<input type=radio id=rad1 name=group value=one>First Option</input><br> <input type=radio id=rad2 name=group value=two>Second Option</input><br> <input type=radio
I have some radio buttons. <div class=user> <input type=radio class=user-radio name=user value=user/> <p>BLABLA</p> </div>
Consider the html <div id=one > <input type=radio value=x name=group > <input type=radio value=y
I have some radio buttons <div id=typeRadios> <input id=character_chartype_a name=character[chartype] type=radio value=A /><label for=character_chartype_a>A</label>
I have one input field and one division with span children <input type=text id=input
I have two arrays and I post the arrays in one input; <input name='sistem[]'

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.