radio value lost by $_post array

Posted by YsoL8 on Stack Overflow See other posts from Stack Overflow or by YsoL8
Published on 2010-04-10T12:13:50Z Indexed on 2010/04/10 12:23 UTC
Read the original article Hit count: 296

Filed under:
|

Hello

I have this simple form:

<form method="post" action="?step=2">   
<label>A4 - Colour / Colour 
<input type="radio" name="leaflet" value="1"></label><br>   
<label>A5 - Colour / Black 
<input type="radio" name="leaflet" value="2"></label><br>
<input type="submit" name="leaflet" value="Select">
</form>

When I apply print_r ($_POST); to the submission though, I only get the submit button data. I don't even see the radio name.

What could do that?

© Stack Overflow or respective owner

Related posts about php

Related posts about forms