Justin Gruenberg wrote:
None
And if you didn't want it to show to the user (because they have to
make a choice anyway) . . . you can use this css:
input[value="None"]
{
display: none;
}
You should then always have a value to play with in PHP, and the user
doesn't see any extra clutter.
wh
> None
And if you didn't want it to show to the user (because they have to
make a choice anyway) . . . you can use this css:
input[value="None"]
{
display: none;
}
You should then always have a value to play with in PHP, and the user
doesn't see any extra clutter.
--
PHP General Mailin
Ashley M. Kirchner wrote:
I have this form.html:
text input
radio input1
radio input2
Then I have this script (form.php):
$val)
echo "$key = $val\n";
?>
If I simply submit the form empty, all I get back from the script is
the text input $key. The radio button doesn't show up. Why
That's because Radio Buttons and Check Boxes do not return anything if not
checked or selected.
So you gotta explicitly do it ur self. That is u gotta check for it's
validity and non-empiness.
e.g. in ur scenario
if(!isset($_POST['radio_test'])) { //print out all the options unselected }
else
{
Hi,
You solve the problem yourself: "the radio input does show up once one
of the radios is checked". When it is unchecked is isn't set...if you
need to assign it a value in any circumstances you should test it with
for
example (of course you may omit the ternary operator...isset() will do
th
I have this form.html:
text input
radio input1
radio input2
Then I have this script (form.php):
$val)
echo "$key = $val\n";
?>
If I simply submit the form empty, all I get back from the script is
the text input $key. The radio button doesn't show up. Why is that and
how can I ha
6 matches
Mail list logo