PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<select name="ntype" id="itype" style="visibility:hidden">
The above is the select statement for making the visibility hidden through html.
How do i write the above statement in PHP ?i want the following select box to be visible only when the particular following radio button is visible.the following statement which i have written doesnt work.
<select name="ntype" id="itype" style="visibility:hidden">
The above is the select statement for making the visibility hidden through html.
How do i write the above statement in PHP ?i want the following select box to be visible only when the particular following radio button is visible.the following statement which i have written doesnt work.
<?PHP
if (isset($_POST['Submit'])) {
$selected_radio = $_POST['lineformat'];
if ($selected_radio = = 'sort') {
hide your select box ntype in the form manually.
}
else {
// write what u want to see.
}
}
?>
<FORM name ="form" method ="post" action ="test.php">
<Input type = 'Radio' Name ='lineformat' value= 'sort'
<Input type = 'Radio' Name ='lineformat' value= 'others'
<P>
<Input type = "Submit" Name = "Submit" >
</FORM>