0
Hello, I am making a form and would like some questions (in input format) appear only if a certain answer is selected in the previous select.
Você trabalha no Desktop ou no Notebook?:
<select name="pc1">
<option selected="selected"> </option>
<option>Desktop</option>
<option>Notebook</option>
</select><br>
No caso de usar Desktop, quantos monitores?:
<input type="text" name="numtela" size="5" /><br>
Instead of the question "In case of using Desktop", I would like the question to appear only if it is selected "Desktop", I imagine something like:
<?php
if ($pc1 = $Desktop) {
No caso de usar Desktop, quantos monitores?:
<input type="text" name="numtela" size="5" /><br>
}
?>
But I could not make it work (I started programming today in php, I know nothing)
Some details are missing, but in advance, the signal to make the comparison is
==
...– MagicHat