I have two fields with the same name, I want to click on one of the radio buttons, don't send another field.
this if
don't work (isn't live=needs to click on submit
)
`if ($_POST['radio'] == "first")`
Is there a small function
?
<input type="radio" name="radio" value="first">
<input type="radio" name="radio" value="second">
<input type="text" name="target" value="this item when radio=first is checked">
<input type="text" name="target" value="this item when radio=second is checked">