I’m trying to have an email send on submit, but I can’t figure out how to echo the value of a radio box, and the text in the value. Can anyone help me?
Here’s my radio box:
<label>
<input type="radio" name="question8" value="0;Not at all" id="question8_1" />
Not at all</label>
<br />
<label>
<input type="radio" name="question8" value="25;Slightly" id="question8_2" />
Slightly</label>
<br />
<label>
Assuming your form was submitted via post,
If for some reason it was submitted via
$_GETTo separate the value and text, use
explode(";", $value):And both of these assume your
<input>tags actually occur inside a<form>tag as in: