vendredi 25 avril 2014

how to pass option id or text value in php


Vote count:

0




i want to get option id value in php



<select id="quantity" name="quantity" tabindex="2" onchange="calculate(this)" required autofocus>
<option value="">Choose Your Quantity</option>
<?php

if($prodqty)
{
foreach($prodqty as $qty)
{
for($i = $qty->quantity_from; $i <= $qty->quantity_to; $i++)
{
?>

<option value="<?=$qty->discount?>" id="<?=$i?>"><?=$i?></option>

<?php } } } ?>
</select>


i want to pass $i value that is placed in option id and also between option tag in php. i prefer to send this value through php



asked 32 secs ago






Aucun commentaire:

Enregistrer un commentaire