私はチェックボックスのセットを持っているので、選択したチェックボックスの値を、それに関連付けられた隠しフィールドと数値フィールドの値と共に次のページに渡したいと思います。ここでチェックボックスに関連付けられた非表示フィールドと数値フィールドの値を次のページに渡す方法はありますか?
とは
<form name="testform" method="post" action="page2.php">
<li>
<label>
<input type="checkbox" id="itemprice1" name="Itemprice[]" value="350" onclick="total(this.form);"/>
<?php the_post_thumbnail(); ?><p><?php echo get_the_title(); ?></p>
<input min="0" max="5" type="number" class="quantity" name="quantity" value="1" onclick="total(this.form);"/>
<input type="hidden" name="Itemname[]" value="Item A">
</label>
</li>
<li>
<label>
<input type="checkbox" id="itemprice2" name="Itemprice[]" value="250" onclick="total(this.form);"/>
<?php the_post_thumbnail(); ?><p><?php echo get_the_title(); ?></p>
<input min="0" max="5" type="number" class="quantity" name="quantity" value="1" onclick="total(this.form);"/>
<input type="hidden" name="Itemname[]" value="Item B">
</label>
</li>
<li>
<label>
<input type="checkbox" id="itemprice3" name="Itemprice[]" value="350" onclick="total(this.form);"/>
<?php the_post_thumbnail(); ?><p><?php echo get_the_title(); ?></p>
<input min="0" max="5" type="number" class="quantity" name="quantity" value="1" onclick="total(this.form);"/>
<input type="hidden" name="Itemname[]" value="Item C">
</label>
</li>
<input type="submit" name="fb" value="small" />
</form>
[チェックボックスが選択されているときに隠しフィールドの値を渡す?](http://stackoverflow.com/questions/36196521/pass-value-of-hidden-field-when-a-checkbox-is- selected) – SGR