Jump to content
  • 0

проблемы с radio


errors
 Share

Question

Использую yii framework. Вот он для меня сгенерировал данный код.

Вот такая проблема с отправкой данных post.

Есть 4 inputa type=radio - когда выбираю 4-ый нормально получаю цифру 4 на сервере... но при выборе 1-3 й radio всегда 0.

Вот уже бюсь оч долго... может глюки у меня уже но не нашел другого выхода как спросить на форуме. Неисключена тупая ошибка...)))

Спасибо за понимание...

="Question_lang">Lang</label>		<select selected="selected" name="Question[lang]" id="Question_lang">
<option value="KAZ">Казахский</option>
<option value="RUS" selected="selected">Русский</option>
</select> </div>
<input value="entrant" name="Question[for]" id="Question_for" type="hidden" /> <div class="row">
<label for="Question_question" class="required">Question <span class="required">*</span></label> <textarea name="Question[question]" id="Question_question"></textarea> </div>



<div class="column">
<div class="row">
<label for="Answer_answer" class="required">Answer <span class="required">*</span></label> <input id="ytRB1" type="hidden" value="0" name="RB" /><input value="1" id="RB1" name="RB" type="radio" />
<textarea name="Answer[1]" id="Answer_1"></textarea> </div>
<div class="row">
<label for="Answer_answer" class="required">Answer <span class="required">*</span></label> <input id="ytRB2" type="hidden" value="0" name="RB" /><input value="2" id="RB2" name="RB" type="radio" /> <textarea name="Answer[2]" id="Answer_2"></textarea> </div>

<div class="row">
<input type="submit" name="yt0" value="Сохранить" /> </div>
</div>

<div class="column">
<div class="row">
<label for="Answer_answer" class="required">Answer <span class="required">*</span></label> <input id="ytRB3" type="hidden" value="0" name="RB" /><input value="3" id="RB3" name="RB" type="radio" /> <textarea name="Answer[3]" id="Answer_3"></textarea> </div>

<div class="row">
<label for="Answer_answer" class="required">Answer <span class="required">*</span></label> <input id="ytRB4" type="hidden" value="0" name="RB" /><input value="4" id="RB4" name="RB" type="radio" /> <textarea name="Answer[4]" id="Answer_4"></textarea> </div>
</div>
<input value="9" name="Question[owner_id]" id="Question_owner_id" type="hidden" /></form>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy