php - Get radio button name attributes value -
sorry if stupid question im not sure how tackle this, perhaps im overthinking. need retrieve both name attributes value , value attributes value. have @ img below:
echo'<input type="radio" name="'.$eventid[].'" value="'.$team1.'">';
the name contains event_id , value contains user selection. need name ids value insert event id db along user selection.
i know how retrieve rad value attribute not sure name, maybe im overthinking or need change logic. ideas?
if user select australia radio button in php value 'australia' want value 'australia_80' store in db. change radio button values , names like
<input type="radio" value="australia_80" name="getradio"> <input type="radio" value="canada_81" name="getradio">
Comments
Post a Comment