I want to have an option (yes/no) drop down box, that when set to "no", hides two of the input fields on the form.
the input code is echoed by PHP though, and contains an if /else statement.
the code that needs to be hidden is:
PHP Code:
if ($MFv){echo '<tr><td>Multiplier Factor (Verticle):</td><td><input type="text" name="MFv" value="'.$MFv.'"></td></tr>';
}else
{echo '<tr><td>Multiplier Factor (Verticle):</td><td><input type="text" name="MFv" value="'.htmlspecialchars($_POST['MFv']).'"></td></tr>';
}
I could hide it with a variable, but then they would have to click submit first, right? or is there another way? It needs to diapear (or reapear) as soon as the user chooses the first option.
any ideas?
thanks,
Nick