Jazajay
Active Member
Right I have either been looking at it for too long or I have just forgotten the basics.
Anyway I cant retrieve the value of a radio button, of all the problems in all the world why I cant do it I have no idea, but I flaming cant.
Here's what I have ~
<label for="a">Value1 ~</label> <input id="a" type="radio" name="type" value="value1" checked="checked" /><br />
<label for="b">Value2 ~</label> <input id="b" type="radio" name="type" value="value2" />
Then once the form is submitted, my PHP to retrieve it is ~
."</p>Type of work: ".strip_tags($_POST['type'])."</p><p>".
Now what ever I select all I get is value1 outputted.
You can mock at the dumbass by all means but please tell me why, as I cant work it out. Of all the problems.
Jaz
Key:
Purple ~ XHTML
Red ~ PHP
Anyway I cant retrieve the value of a radio button, of all the problems in all the world why I cant do it I have no idea, but I flaming cant.
Here's what I have ~
<label for="a">Value1 ~</label> <input id="a" type="radio" name="type" value="value1" checked="checked" /><br />
<label for="b">Value2 ~</label> <input id="b" type="radio" name="type" value="value2" />
Then once the form is submitted, my PHP to retrieve it is ~
."</p>Type of work: ".strip_tags($_POST['type'])."</p><p>".
Now what ever I select all I get is value1 outputted.
You can mock at the dumbass by all means but please tell me why, as I cant work it out. Of all the problems.
Jaz
Key:
Purple ~ XHTML
Red ~ PHP