У меня есть форма представления с тремя из них
два из них в порядке, я использую один идентификатор для всех значений, которые будут отправлены
, но один из них, который я 'Сейчас я борюсь за то, чтобы у всех были разные значения курса, а форма выбора также с другим идентификатором, что заставило меня запутаться, как я могу повторить его.
<form action="" method="post">
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal" >
<legend>เลือกช่อง</legend>
<input type="radio" name="radio-choice-1" id="radio-choice-1" value="ch41" checked="checked" />
<label for="radio-choice-1">number 1</label>
<input type="radio" name="radio-choice-1" id="radio-choice-2" value="ch80" />
<label for="radio-choice-2">number 2</label>
<input type="radio" name="radio-choice-1" id="radio-choice-3" value="ch44" />
<label for="radio-choice-3>"number 3</label>
<input type="radio" name="radio-choice-1" id="radio-choice-4" value="ch42" />
<label for="radio-choice-4">number 4</label>
<input type="radio" name="radio-choice-1" id="radio-choice-5" value="ch83" />
<label for="radio-choice-5">number 5</label>
</fieldset>
</div>
</form>
и вот что я пытаюсь повторить1008 *
<video width="5%" height="5%" src="http://mydomain:<?php echo $_POST["radio-choice-1"]; ?>-<?php echo $_POST["date"]; ?>-<?php echo $_POST["time"]; ?>" alt="" controls="" tabindex="0">
, поэтому проблема в "radio-choice-#"
, поскольку у него 5 номеров на идентификаторе
, вот пример
<input type="radio" name="radio-choice-1" id="radio-choice-2" value="ch80" />
<label for="radio-choice-2">number 2</label>
<input type="radio" name="radio-choice-1" id="radio-choice-3" value="ch44" />
<label for="radio-choice-3>"number 3</label>
<input type="radio" name="radio-choice-1" id="radio-choice-4" value="ch42" />
<label for="radio-choice-4">number 4</label>
<input type="radio" name="radio-choice-1" id="radio-choice-5" value="ch83" />
<label for="radio-choice-5">number 5</label>
поэтому, если они выбирают номер меню 5
, я хочу повторить здесь
<video width="5%" height="5%" src="http://mydomain:<?php echo $_POST["the value of number 5"]; ?">