(English is my second language)
Hello community!
I would like to define a variable content by asking the user to choose between a exhaustive list of possible strings (6 elements). I thought I could do this by using html, more specifically, the <select> tag[img][/img]. I've tried to do so, but I think I have the wrong syntax. Or, maybe the combination of the set macro and the html doesn't work. Here's the "chunk of code" (strings are in French)
Dans quel arrondissement sommes-nous? //In which neibourghood are we?
(set:
$arrondissement to //set $neibourghood to, then list of names
<select required="required">
<option value="Beauport">Beauport</option>
<option value="Charlesbourg">Charlesbourg</option>
<option value="Limoilou">La Cité Limoilou</option>
<option value="Haute-Saint-Charles">Saint-Charles</option>
<option value="Rivières">Les Rivières</option>
<option value="sainte-foy-sillery-cap-Rouge">sainte-foy-sillery-cap-Rouge</option>
</select>
)
note: On the W3C site, it says: "The <select> element is a form control and can be used in a form to collect user input." (http://www.w3schools.com/tags/tag_select.asp)
Any idea what the problem is?
Any input is appreciated!
Thanks,
Isabelle
Hello community!
I would like to define a variable content by asking the user to choose between a exhaustive list of possible strings (6 elements). I thought I could do this by using html, more specifically, the <select> tag[img][/img]. I've tried to do so, but I think I have the wrong syntax. Or, maybe the combination of the set macro and the html doesn't work. Here's the "chunk of code" (strings are in French)
Dans quel arrondissement sommes-nous? //In which neibourghood are we?
(set:
$arrondissement to //set $neibourghood to, then list of names
<select required="required">
<option value="Beauport">Beauport</option>
<option value="Charlesbourg">Charlesbourg</option>
<option value="Limoilou">La Cité Limoilou</option>
<option value="Haute-Saint-Charles">Saint-Charles</option>
<option value="Rivières">Les Rivières</option>
<option value="sainte-foy-sillery-cap-Rouge">sainte-foy-sillery-cap-Rouge</option>
</select>
)
note: On the W3C site, it says: "The <select> element is a form control and can be used in a form to collect user input." (http://www.w3schools.com/tags/tag_select.asp)
Any idea what the problem is?
Any input is appreciated!
Thanks,
Isabelle