php - two values for one name in input -


I have an input (type radio) that I want to include in it 2 values, something like this:

& lt; Input type = "radio" name = "name" value1 = "value1" value2 = "value2" />

And after attracting each value separated with PHP,

Is there a way to do this? (And no .. I do not want to insert input with type = "hidden")

Thanks.

OK, I can not do this, but you use the delimiter for your value (s) Can

  & lt; Input type = "radio" value = "value1 | value2" name = "two_value" />  

Then, in PHP, just type the list ($ value1, $ value2) = explosion ('|', $ _POST ['two_values']); Edit As the user has said 387302, you will not be limited to having any assumptions with your delimiter, for example value = "One | PipedVariable | and Another" "One | Piped Value" and "And Other" will not work to remove


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -