2
此表單實際上獲取了一些輸入字段,如下所示。添加隱藏字段,包括當前提交字段值,並將其作爲隱藏字段發送到下一頁
我需要添加輸入(隱藏)字段值和我從custom12中獲得的值,並將其作爲隱藏字段中的自定義13發送到下一頁。如何做到這一點
<form name="q9" id="submitDetails" action="pandora.do" method="post" class="form-horizontal">
<input type="hidden" name="cutom4" value="1" class="Qty">
<input type="hidden" name="cutom5" value="2" class="Qty">
<input type="hidden" name="cutom6" value="3" class="Qty">
<input type="hidden" name="cutom7" value="5" class="Qty">
<input type="hidden" name="cutom8" value="1" class="Qty">
<input type="hidden" name="cutom9" value="9" class="Qty">
<input type="hidden" name="cutom10" value="8" class="Qty">
<input type="hidden" name="cutom11" value="10" class="Qty">
<fieldset class="questionsForm">
<div class="form-group">
<div class="col-xs-10">
<div class="radio">
<input name="custom12" id="custom12A" value="1" type="radio" class="styled myClass prettyCheckable">
<label for="custom12A">I love what I love â€「 that will never change </label>
</div>
<div class="radio">
<input name="custom12" id="custom12B" value="2" type="radio" class="styled myClass prettyCheckable">
<label for="custom12B">I keep an eye on the charts </label>
</div>
<div class="radio">
<input name="custom12" id="custom12C" value="3" type="radio" class="styled myClass prettyCheckable">
<label for="custom12C">I buy t-shirts, records and go to live shows if I like an artist. </label>
</div>
<div class="radio">
<input name="custom12" id="custom12D" value="4" type="radio" class="styled myClass prettyCheckable">
<label for="custom12D">I always know every word of every song and travel night and day for my artists.</label>
</div>
</div>
</div>
<div id="error_msg5"> </div>
<input type="hidden" name="cutom13" value="$entrantForm32399.custom13" id="custom13">
<div class="clearfix"> </div>
<!-- Button -->
<div class="form-group nextButton">
<div class="col-xs-10">
<button id="submitDetails" name="submitDetails" class="btn btn-primary btnNext">NEXT</button>
</div>
</div>
</fieldset>
</form>
使用PHP會議解決方案截止了? – underscore
php不是在這裏使用的編程語言 –
服務器端腳本(通常是php)是對錶單進行響應的好方法。正如Rohan所說,你可以使用其他方法,比如cookies。 – bjb568