Re: radio buttons

From: Date: Thu, 20 Sep 2001 11:10:40 +0000
Subject: Re: radio buttons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67970@lists.php.net to get a copy of this message
Just a hunch... but try value="1&ndash;24" and see how that works, so basically substitute "-" for "&ndash;" I can't see the rest of your code and what else you might be appending to $msgtxt, so it could be something else... Rick > Used HTML code: > > <input type="radio" name="empleados" value="1-24"> > <input type="radio" name="empleados" value="25-99"> > <input type="radio" name="empleados" value="100-399"> > <input type="radio" name="empleados" value="&gt;399"> > > PHP code: > $msgtxt .= "\r\nEmpleados: $empleados"; > > Whatever radio button is selected, the $msgtxt becomes: "Empleados 0" > > As far as I know the variable $empleados should have the choice that was > made in the form. Why did it return "0"? What did I do wrong? Note that all > other form entries work fine, only radio buttons seem to be problematic. > > Please CC to my email too. > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#67970) next »